diff options
author | Min Min Ren <rminmin@cn.ibm.com> | 2015-12-02 08:27:53 +0000 |
---|---|---|
committer | Alistair Coles <alistair.coles@hpe.com> | 2016-02-25 11:05:45 +0000 |
commit | ff880daccff57278129ed63b7d872c039f5e8fd2 (patch) | |
tree | 21ce0e206c2a464c04c7cb6c2e9856b43710c078 | |
parent | 3e07428301f4aa872d9cf096af1ecb48a1e8781f (diff) | |
download | python-swiftclient-ff880daccff57278129ed63b7d872c039f5e8fd2.tar.gz |
Fix the http request headers being overwritten in logging
Fix the http request headers in put_object being overwritten in logging
Cherry-picked from commit 61880c6f980cb8e613bdf6cb48a9a61ce7488162
Change-Id: Id0d1e36561a61ed1ce30d93c801ec32f058a6fa4
Closes-bug: #1501292
-rw-r--r-- | swiftclient/client.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/swiftclient/client.py b/swiftclient/client.py index 8466cc5..9d6517e 100644 --- a/swiftclient/client.py +++ b/swiftclient/client.py @@ -1091,7 +1091,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) |