added custom header precedence info

This commit is contained in:
benjaminran
2015-04-03 07:58:42 -07:00
parent 0ad075c430
commit 898465756a
+9
View File
@@ -190,6 +190,15 @@ For example, we didn't specify our content-type in the previous example::
>>> r = requests.get(url, headers=headers)
Note: Custom headers are given less precedence than more specific sources of information. For instance:
* Authorization headers will be overridden by any alternative auth source found.
* Authorization headers will be removed if you get redirected off-host.
* Proxy-Authorization headers will be overridden by proxy credentials provided in the URL.
* Content-Length headers will be overridden when we can determine the length of the content.
Furthermore, 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.
More complicated POST requests
------------------------------