Merge "Fix WsgiLimiterProxy check"
This commit is contained in:
commit
f6f8e2b1be
@ -421,7 +421,8 @@ class WsgiLimiterProxy(object):
|
||||
|
||||
resp = conn.getresponse()
|
||||
|
||||
if 200 >= resp.status < 300:
|
||||
if resp.status >= 200 and resp.status < 300:
|
||||
# there's nothing to rate-limit
|
||||
return None, None
|
||||
|
||||
return resp.getheader("X-Wait-Seconds"), resp.read() or None
|
||||
|
Loading…
x
Reference in New Issue
Block a user