Merge branch 'pr-urlfix-1' of https://github.com/brendoncrawford/requests into develop

This commit is contained in:
Kenneth Reitz
2012-01-30 09:33:31 -05:00
+3
View File
@@ -317,6 +317,9 @@ class Request(object):
netloc = netloc.encode('idna').decode('utf-8')
if not path:
path = '/'
if is_py2:
if isinstance(path, str):
path = path.encode('utf-8')