Fix the http request headers being overwritten in logging

Fix the http request headers in put_object being overwritten in logging

Change-Id: Id0d1e36561a61ed1ce30d93c801ec32f058a6fa4
Closes-bug: #1501292
This commit is contained in:
Min Min Ren 2015-12-02 08:27:53 +00:00 committed by Alistair Coles
parent a564eb0e4c
commit 61880c6f98

@ -1128,7 +1128,6 @@ def put_object(url, token=None, container=None, name=None, contents=None,
resp = conn.getresponse()
body = resp.read()
headers = {'X-Auth-Token': token}
http_log(('%s%s' % (url.replace(parsed.path, ''), path), 'PUT',),
{'headers': headers}, resp, body)