summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@enovance.com>2014-04-24 17:04:21 +0200
committerChmouel Boudjnah <chmouel@enovance.com>2014-04-24 17:05:36 +0200
commita99c2ff5816ee135f38f8962030889100d37dc8c (patch)
treef5dda91aecce320f31ee0f4b6a90192e8db50e62
parent37bf0ff9a12f95cc609dab4697adde140500f011 (diff)
downloadpython-swiftclient-a99c2ff5816ee135f38f8962030889100d37dc8c.tar.gz
Don't utf8 encode urls.
This is not needed since already done by requests. (and it was buggy with py3). Change-Id: I9505c56be2f53eb8071aea3d5fb9d8caa9508e34
-rw-r--r--swiftclient/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/swiftclient/client.py b/swiftclient/client.py
index a482722..d58d4b5 100644
--- a/swiftclient/client.py
+++ b/swiftclient/client.py
@@ -189,10 +189,10 @@ class HTTPConnection:
# set a default User-Agent header if it wasn't passed in
if 'user-agent' not in headers:
headers['user-agent'] = self.default_user_agent
- url = encode_utf8("%s://%s%s" % (
+ url = "%s://%s%s" % (
self.parsed_url.scheme,
self.parsed_url.netloc,
- full_path))
+ full_path)
self.resp = self._request(method, url, headers=headers, data=data,
files=files, **self.requests_args)
return self.resp