From: Kenneth Reitz Date: Thu, 8 Mar 2012 00:25:46 +0000 (-0800) Subject: disablable encode_urls X-Git-Tag: v0.10.7~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1a44259d6f8f44618788c712e3638b9b4d77c50;p=services%2Fpython-requests.git disablable encode_urls --- diff --git a/requests/models.py b/requests/models.py index d580e7d..068909b 100644 --- a/requests/models.py +++ b/requests/models.py @@ -343,7 +343,8 @@ class Request(object): else: url = '%s?%s' % (url, self._enc_params) - url = requote_uri(url) + if self.config.get('encode_urls'): + url = requote_uri(url) return url