Merge pull request #2525 from benjaminran/issue2062

Issue 2062: Added custom header precedence info
This commit is contained in:
Cory Benfield
2015-04-03 16:57:54 +01:00
+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
------------------------------