Skip to content

Commit 0e16105

Browse files
Add note that headers added via urllib.request.add_header are added to redirected requests (GH-30708) (#92005)
(cherry picked from commit f348154) Co-authored-by: Ashwin Ramaswami <[email protected]> Co-authored-by: Ashwin Ramaswami <[email protected]>
1 parent 35a4eb2 commit 0e16105

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/urllib.request.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,8 @@ request.
542542
name, and later calls will overwrite previous calls in case the *key* collides.
543543
Currently, this is no loss of HTTP functionality, since all headers which have
544544
meaning when used more than once have a (header-specific) way of gaining the
545-
same functionality using only one header.
545+
same functionality using only one header. Note that headers added using
546+
this method are also added to redirected requests.
546547

547548

548549
.. method:: Request.add_unredirected_header(key, header)

0 commit comments

Comments
 (0)