mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Fix #1322: Add note in docs about None not being sent as data
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.
This commit is contained in:
@@ -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
|
||||
----------------
|
||||
|
||||
Reference in New Issue
Block a user