mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Use UNKNOWN if user agent is missing
This is much shorter and doesn't clutter the log as much.
This commit is contained in:
parent
266dc608f2
commit
c104da28ce
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ class Application:
|
|||
remote_host = environ["REMOTE_HOST"]
|
||||
if environ.get("HTTP_X_FORWARDED_FOR"):
|
||||
remote_host = environ["HTTP_X_FORWARDED_FOR"]
|
||||
remote_useragent = "[-no-user-agent-provided-]"
|
||||
remote_useragent = "UNKNOWN"
|
||||
if environ.get("HTTP_USER_AGENT"):
|
||||
remote_useragent = environ["HTTP_USER_AGENT"]
|
||||
depthinfo = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue