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:
e4b4132
)
Fix #1322: Add note in docs about None not being sent as data
author
David Pursehouse
<david.pursehouse@gmail.com>
Fri, 19 Jul 2013 08:00:46 +0000
(17:00 +0900)
committer
David Pursehouse
<david.pursehouse@gmail.com>
Fri, 19 Jul 2013 08:14:59 +0000
(17:14 +0900)
In the case:
payload = {'key1': 'value1', 'key2': 'value2', 'key3': None}
r = requests.get("http://httpbin.org", params=payload)
the parameter `key3` will not be sent as a parameter in the URL.
Mention this in the documentation.
docs/user/quickstart.rst
patch
|
blob
|
history
diff --git
a/docs/user/quickstart.rst
b/docs/user/quickstart.rst
index
59d75cc
..
660cdfa
100644
(file)
--- a/
docs/user/quickstart.rst
+++ b/
docs/user/quickstart.rst
@@
-71,6
+71,9
@@
You can see that the URL has been correctly encoded by printing the URL::
>>> print r.url
u'http://httpbin.org/get?key2=value2&key1=value1'
+Note that any dictionary key whose value is ``None`` will not be added to the
+URL's query string.
+
Response Content
----------------