summary refs log tree commit diff
path: root/synapse/http/server.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-04-30 00:38:21 +0100
committerGitHub <noreply@github.com>2018-04-30 00:38:21 +0100
commitdbf6f28d640e5a19b5696ef0c512dbd956580e4f (patch)
treee0c6f054408f61288a2ca7d29aec396fb51377ab /synapse/http/server.py
parentMerge pull request #3140 from matrix-org/rav/use_run_in_background (diff)
parentmore bytes strings (diff)
downloadsynapse-dbf6f28d640e5a19b5696ef0c512dbd956580e4f.tar.xz
Merge pull request #3155 from NotAFile/py3-bytes-1
more bytes strings
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