Merge "Fix WsgiLimiterProxy check"

This commit is contained in:
Zuul 2020-08-28 22:07:05 +00:00 committed by Gerrit Code Review
commit f6f8e2b1be

View File

@ -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