diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-01-08 09:41:11 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-01-08 09:41:11 +0000 |
commit | c9d2cecac9727ac3be8ad8cab21dc78b9dffe7a2 (patch) | |
tree | 9e1a5168728d9520a1f6f0e18a8e03751fef9f31 /synapse/http/client.py | |
parent | Merge branch 'release-v0.6.1' of github.com:matrix-org/synapse (diff) | |
download | synapse-c9d2cecac9727ac3be8ad8cab21dc78b9dffe7a2.tar.xz |
SYN-231: User agent header broken
Diffstat (limited to '')
-rw-r--r-- | synapse/http/client.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/http/client.py b/synapse/http/client.py index e5d4939e2d..7793bab106 100644 --- a/synapse/http/client.py +++ b/synapse/http/client.py @@ -53,7 +53,7 @@ class SimpleHttpClient(object): uri.encode("ascii"), headers=Headers({ b"Content-Type": [b"application/x-www-form-urlencoded"], - b"User-Agent": AGENT_NAME, + b"User-Agent": [AGENT_NAME], }), bodyProducer=FileBodyProducer(StringIO(query_bytes)) ) @@ -89,7 +89,7 @@ class SimpleHttpClient(object): "GET", uri.encode("ascii"), headers=Headers({ - b"User-Agent": AGENT_NAME, + b"User-Agent": [AGENT_NAME], }) ) @@ -114,7 +114,7 @@ class CaptchaServerHttpClient(SimpleHttpClient): bodyProducer=FileBodyProducer(StringIO(query_bytes)), headers=Headers({ b"Content-Type": [b"application/x-www-form-urlencoded"], - b"User-Agent": AGENT_NAME, + b"User-Agent": [AGENT_NAME], }) ) |