Skip to content
Myr

Merge pull request #4547 from Saraislet/json-kwarg-docs

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

add comment about json parameter changing content-type

authored by Nate Prewitt · committed by GitHub · parents 8246b82, 35af0b0 · Browse files · 1 file+2 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+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:docs/user/quickstart.rst+2 added
281 unmodified lines
282 >>> r = requests.post(url, json=payload)283284Note, the ``json`` parameter is ignored if either ``data`` or ``files`` is passed.285286Using the ``json`` parameter in the request will change the ``Content-Type`` in the header to ``application/json``.287288POST a Multipart-Encoded File289-----------------------------290291Requests makes it simple to upload Multipart-encoded files::
267 unmodified lines