From a1595cec787d4bfa4f4a2ede7ebafe54919c1f06 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 21 Apr 2017 11:51:17 +0100 Subject: [PATCH] Don't error for 3xx responses --- synapse/http/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))