Don't utf8 encode urls.

This is not needed since already done by requests.

(and it was buggy with py3).

Change-Id: I9505c56be2f53eb8071aea3d5fb9d8caa9508e34
This commit is contained in:
Chmouel Boudjnah 2014-04-24 17:04:21 +02:00
parent 37bf0ff9a1
commit a99c2ff581

View File

@ -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