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
1 changed files with 1 additions and 1 deletions

View File

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