From c104da28ce80bfc42390a0fb69402f30f874ae61 Mon Sep 17 00:00:00 2001 From: Unrud Date: Tue, 7 Mar 2017 18:19:41 +0100 Subject: [PATCH] Use UNKNOWN if user agent is missing This is much shorter and doesn't clutter the log as much. --- radicale/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index 0432042..d8e9984 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -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 = ""