summaryrefslogtreecommitdiff
path: root/swiftclient/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'swiftclient/client.py')
-rw-r--r--swiftclient/client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/swiftclient/client.py b/swiftclient/client.py
index 7f4c35b..082f476 100644
--- a/swiftclient/client.py
+++ b/swiftclient/client.py
@@ -170,6 +170,8 @@ class HTTPConnection(object):
self.port = self.parsed_url.port
self.requests_args = {}
self.request_session = requests.Session()
+ # Don't use requests's default headers
+ self.request_session.headers = None
if self.parsed_url.scheme not in ('http', 'https'):
raise ClientException('Unsupported scheme "%s" in url "%s"'
% (self.parsed_url.scheme, url))
@@ -238,7 +240,6 @@ class HTTPConnection(object):
return old_getheader(k.lower(), v)
def releasing_read(*args, **kwargs):
- kwargs['decode_content'] = True
chunk = self.resp.raw.read(*args, **kwargs)
if not chunk:
# NOTE(sigmavirus24): Release the connection back to the