note about indns

This commit is contained in:
Kenneth Reitz
2011-06-24 18:24:44 -04:00
parent 868cd3d1cb
commit 6f08c81698
+1
View File
@@ -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)