Fix http.py to initial
Change-Id: Ife9d53b316839a6c8145b68c9f0cd568cbee7afd
This commit is contained in:
parent
5dbdc71732
commit
eb5a86baff
|
@ -223,7 +223,7 @@ class HTTPClient(object):
|
|||
|
||||
# Read body into string if it isn't obviously image data
|
||||
if resp.getheader('content-type', None) != 'application/octet-stream':
|
||||
body_str = ''.join([chunk for piece in body_iter])
|
||||
body_str = ''.join([chunk for chunk in body_iter])
|
||||
self.log_http_response(resp, body_str)
|
||||
body_iter = StringIO.StringIO(body_str)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue