Skip to content
Myr

updating documentation to reflect decision of #3386

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

authored by Nate Prewitt · committed by Nate Prewitt · parent 7700eca · Browse files · 2 files+6 added−1 removed
This commit

State

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

Diff stats

2 files+6 added−1 removed

  • other:+6 added−1 removed

2 files+6 added−1 removed

modified:docs/user/quickstart.rst+1 added
209 unmodified lines
210* Content-Length headers will be overridden when we can determine the length of the content.211212Furthermore, Requests does not change its behavior at all based on which custom headers are specified. The headers are simply passed on into the final request.213214Note: All header values must be a ``string``, bytestring, or unicode. While permitted, it's advised to avoid passing unicode header values.215216More complicated POST requests217------------------------------218
293 unmodified lines
modified:docs/api.rst+5 added-1 removed
256 unmodified lines
257~~~~~~~~~~~~~~~~~~~~~~~258259* Keys in the ``headers`` dictionary are now native strings on all Python260 versions, i.e. bytestrings on Python 2 and unicode on Python 3. If the261 keys are not native strings (unicode on Python2 or bytestrings on Python 3)261 keys are not native strings (unicode on Python 2 or bytestrings on Python 3)262 they will be converted to the native string type assuming UTF-8 encoding.263264* Values in the ``headers`` dictionary should always be strings. This has265 been the project's position since before 1.0 but a recent change266 (since version 2.11.0) enforces this more strictly. It's advised to avoid267 passing header values as unicode when possible.