summary refs log tree commit diff
path: root/synapse/http/client.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2017-04-21 11:51:17 +0100
committerDavid Baker <dave@matrix.org>2017-04-21 11:51:17 +0100
commita1595cec787d4bfa4f4a2ede7ebafe54919c1f06 (patch)
treea70f85fe2fc4fa2f2ebf39dca7782d0f0694875f /synapse/http/client.py
parentMerge remote-tracking branch 'origin/develop' into dbkr/http_request_propagat... (diff)
downloadsynapse-a1595cec787d4bfa4f4a2ede7ebafe54919c1f06.tar.xz
Don't error for 3xx responses
Diffstat (limited to 'synapse/http/client.py')
-rw-r--r--synapse/http/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/http/client.py b/synapse/http/client.py
index c8b76b2191..483f37fe03 100644
--- a/synapse/http/client.py
+++ b/synapse/http/client.py
@@ -145,7 +145,7 @@ class SimpleHttpClient(object):
 
         body = yield preserve_context_over_fn(readBody, response)
 
-        if response.code / 100 != 2:
+        if response.code / 100 >= 4:
             raise CodeMessageException(response.code, body)
 
         defer.returnValue(json.loads(body))