mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
note about indns
This commit is contained in:
@@ -238,6 +238,7 @@ class Request(object):
|
||||
def _build_url(self):
|
||||
"""Build the actual URL to use"""
|
||||
|
||||
# Support for unicode domain names.
|
||||
parsed_url = list(urlparse(self.url))
|
||||
parsed_url[1] = parsed_url[1].encode('idna')
|
||||
self.url = urlunparse(parsed_url)
|
||||
|
||||
Reference in New Issue
Block a user