Use UNKNOWN if user agent is missing

This is much shorter and doesn't clutter the log as much.
This commit is contained in:
Unrud 2017-03-07 18:19:41 +01:00
parent 266dc608f2
commit c104da28ce

View File

@ -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 = ""