Merge "Reset state every iteration to avoid stale reference"

This commit is contained in:
Zuul 2018-01-25 06:28:43 +00:00 committed by Gerrit Code Review
commit 9263e7daf5

View File

@ -180,8 +180,8 @@ class InternalClient(object):
headers = dict(headers)
headers['user-agent'] = self.user_agent
resp = exc_type = exc_value = exc_traceback = None
for attempt in range(self.request_tries):
resp = exc_type = exc_value = exc_traceback = None
req = Request.blank(
path, environ={'REQUEST_METHOD': method}, headers=headers)
if body_file is not None: