diff options
| author | Rajiv Mayani <mayani@isi.edu> | 2017-05-23 10:43:32 -0700 |
|---|---|---|
| committer | Nate Prewitt <Nate.Prewitt@gmail.com> | 2018-05-17 07:12:17 -0700 |
| commit | 322bb266d6a68110001912ffbd0fa4781f26aded (patch) | |
| tree | aafd99928aaba27295544d805de9b941255bada4 /docs/dev/contributing.rst | |
| parent | c6db87978f1ab5556d5c9e06978b2d8657d3c571 (diff) | |
| download | python-requests-322bb266d6a68110001912ffbd0fa4781f26aded.tar.gz | |
The library raises NoneType error when file-pointer (fp) resolves to None.
>>> from requests import post
>>> r = post("https://example.com", files={"file-name": None})
However, when a param value or json field is None they are not included in the request body.
>>> from requests import get
>>> r = get("https://example.com", params={"file-name": None})
>>> r.request.url
This commit makes the beahviour consistent for files.
Diffstat (limited to 'docs/dev/contributing.rst')
0 files changed, 0 insertions, 0 deletions
