mirror of
https://github.com/element-hq/synapse
synced 2024-09-04 11:20:07 +00:00
Don't error for 3xx responses
This commit is contained in:
parent
2e165295b7
commit
a1595cec78
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ class SimpleHttpClient(object):
|
||||||
|
|
||||||
body = yield preserve_context_over_fn(readBody, response)
|
body = yield preserve_context_over_fn(readBody, response)
|
||||||
|
|
||||||
if response.code / 100 != 2:
|
if response.code / 100 >= 4:
|
||||||
raise CodeMessageException(response.code, body)
|
raise CodeMessageException(response.code, body)
|
||||||
|
|
||||||
defer.returnValue(json.loads(body))
|
defer.returnValue(json.loads(body))
|
||||||
|
|
Loading…
Reference in a new issue