summary refs log tree commit diff
path: root/synapse/http/server.py
diff options
context:
space:
mode:
authorAdrian Tschira <nota@notafile.com>2018-04-28 23:56:59 +0200
committerAdrian Tschira <nota@notafile.com>2018-04-29 00:13:57 +0200
commite9143b659352e87fd9e26c8e5a771c78011bc945 (patch)
tree18d53d291157b9e9eb69b8bdb405ccfaf51e1135 /synapse/http/server.py
parentMerge pull request #3127 from matrix-org/rav/deferred_timeout (diff)
downloadsynapse-e9143b659352e87fd9e26c8e5a771c78011bc945.tar.xz
more bytes strings
Signed-off-by: Adrian Tschira <nota@notafile.com>
Diffstat (limited to 'synapse/http/server.py')
-rw-r--r--synapse/http/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/http/server.py b/synapse/http/server.py
index 8d632290de..55b9ad5251 100644
--- a/synapse/http/server.py
+++ b/synapse/http/server.py
@@ -546,6 +546,6 @@ def _request_user_agent_is_curl(request):
         b"User-Agent", default=[]
     )
     for user_agent in user_agents:
-        if "curl" in user_agent:
+        if b"curl" in user_agent:
             return True
     return False