Merge "Correcting the response status range in WsgiLimiterProxy"
This commit is contained in:
commit
1db1458c13
@ -416,7 +416,7 @@ class WsgiLimiterProxy(object):
|
|||||||
|
|
||||||
resp = conn.getresponse()
|
resp = conn.getresponse()
|
||||||
|
|
||||||
if http_client.OK >= resp.status < http_client.MULTIPLE_CHOICES:
|
if (resp.status >= 200) and (resp.status < 300):
|
||||||
return None, None
|
return None, None
|
||||||
|
|
||||||
return resp.getheader("X-Wait-Seconds"), resp.read() or None
|
return resp.getheader("X-Wait-Seconds"), resp.read() or None
|
||||||
|
Loading…
Reference in New Issue
Block a user