Respect the NETRC environment variable

This commit is contained in:
Mathieu Pichette
2020-10-19 09:36:52 -07:00
parent 1431502331
commit ba543713d3
2 changed files with 10 additions and 3 deletions
+2 -1
View File
@@ -213,7 +213,8 @@ Note: Custom headers are given less precedence than more specific sources of inf
* Authorization headers set with `headers=` will be overridden if credentials
are specified in ``.netrc``, which in turn will be overridden by the ``auth=``
parameter.
parameter. Requests will search for the netrc file at `~/.netrc`, `~/_netrc`,
or at the path specified by the `NETRC` environment variable.
* 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.