Jelajahi Sumber

Use UNKNOWN if user agent is missing

This is much shorter and doesn't clutter the log as much.
Unrud 9 tahun lalu
induk
melakukan
c104da28ce
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      radicale/__init__.py

+ 1 - 1
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 = ""