0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-19 16:53:59 +01:00

Don't error for 3xx responses

This commit is contained in:
David Baker 2017-04-21 11:51:17 +01:00
parent 2e165295b7
commit a1595cec78

View file

@ -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))