Correcting the response status range in WsgiLimiterProxy
The response status should lie between 200 and 300 but the operator
used makes the condition true when response status is <= 200.
This patch corrects the same.
Closes-Bug:
@@ -416,7 +416,7 @@ class WsgiLimiterProxy(object):
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 resp.getheader("X-Wait-Seconds"), resp.read() or None
