diff --git a/urequests/urequests.py b/urequests/urequests.py index 764f2be2..914d6694 100644 --- a/urequests/urequests.py +++ b/urequests/urequests.py @@ -85,7 +85,7 @@ def request(method, url, data=None, json=None, headers={}, stream=None): if l.startswith(b"Transfer-Encoding:"): if b"chunked" in l: raise ValueError("Unsupported " + l) - elif l.startswith(b"Location:"): + elif l.startswith(b"Location:") and not 200 <= status <= 299: raise NotImplementedError("Redirects not yet supported") resp = Response(s)