projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54b2cb0
)
disablable encode_urls
author
Kenneth Reitz
<me@kennethreitz.com>
Thu, 8 Mar 2012 00:25:46 +0000
(16:25 -0800)
committer
Kenneth Reitz
<me@kennethreitz.com>
Thu, 8 Mar 2012 00:25:46 +0000
(16:25 -0800)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index
d580e7d
..
068909b
100644
(file)
--- 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