Skip to content
Myr

Clarify behaviour of `json` parameter.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

`json` is ignored if `data` or `files` is not empty.

authored by Daniel Roseman · committed by Daniel Roseman · parent acd2645 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:docs/user/quickstart.rst+1 added
279 unmodified lines
280 >>> payload = {'some': 'data'}281282 >>> r = requests.post(url, json=payload)283284Note, the ``json`` parameter is ignored if either ``data`` or ``files`` is passed.285286POST a Multipart-Encoded File287-----------------------------288
268 unmodified lines