diff options
author | David Baker <dave@matrix.org> | 2017-04-21 11:51:17 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2017-04-21 11:51:17 +0100 |
commit | a1595cec787d4bfa4f4a2ede7ebafe54919c1f06 (patch) | |
tree | a70f85fe2fc4fa2f2ebf39dca7782d0f0694875f /synapse/http | |
parent | Merge remote-tracking branch 'origin/develop' into dbkr/http_request_propagat... (diff) | |
download | synapse-a1595cec787d4bfa4f4a2ede7ebafe54919c1f06.tar.xz |
Don't error for 3xx responses
Diffstat (limited to 'synapse/http')
-rw-r--r-- | synapse/http/client.py | 2 |
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)) |