From: Kenneth Reitz Date: Fri, 24 Jun 2011 22:24:44 +0000 (-0400) Subject: note about indns X-Git-Tag: v0.5.1^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f08c816981b0ba29f2c8a490f137fa194df353c;p=services%2Fpython-requests.git note about indns --- diff --git a/requests/models.py b/requests/models.py index 6f794e2..8e60801 100644 --- a/requests/models.py +++ b/requests/models.py @@ -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)