Merge "Correcting the response status range in WsgiLimiterProxy"

This commit is contained in:
Zuul 2020-09-28 22:26:51 +00:00 committed by Gerrit Code Review
commit 1db1458c13

View File

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