Merge "Reset state every iteration to avoid stale reference"
This commit is contained in:
@@ -180,8 +180,8 @@ class InternalClient(object):
|
|||||||
|
|
||||||
headers = dict(headers)
|
headers = dict(headers)
|
||||||
headers['user-agent'] = self.user_agent
|
headers['user-agent'] = self.user_agent
|
||||||
resp = exc_type = exc_value = exc_traceback = None
|
|
||||||
for attempt in range(self.request_tries):
|
for attempt in range(self.request_tries):
|
||||||
|
resp = exc_type = exc_value = exc_traceback = None
|
||||||
req = Request.blank(
|
req = Request.blank(
|
||||||
path, environ={'REQUEST_METHOD': method}, headers=headers)
|
path, environ={'REQUEST_METHOD': method}, headers=headers)
|
||||||
if body_file is not None:
|
if body_file is not None:
|
||||||
|
Reference in New Issue
Block a user