mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Add note that headers added via urllib.request.add_header are added to redirected requests (GH-30708) (#92004)
(cherry picked from commit f348154c8f
)
Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
This commit is contained in:
parent
e2514cb77f
commit
e25799d27d
1 changed files with 2 additions and 1 deletions
|
@ -547,7 +547,8 @@ request.
|
|||
name, and later calls will overwrite previous calls in case the *key* collides.
|
||||
Currently, this is no loss of HTTP functionality, since all headers which have
|
||||
meaning when used more than once have a (header-specific) way of gaining the
|
||||
same functionality using only one header.
|
||||
same functionality using only one header. Note that headers added using
|
||||
this method are also added to redirected requests.
|
||||
|
||||
|
||||
.. method:: Request.add_unredirected_header(key, header)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue