mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Merge branch 'pr-urlfix-1' of https://github.com/brendoncrawford/requests into develop
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user