Skip to content

Commit e25799d

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

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
@@ -547,7 +547,8 @@ request.
547547
name, and later calls will overwrite previous calls in case the *key* collides.
548548
Currently, this is no loss of HTTP functionality, since all headers which have
549549
meaning when used more than once have a (header-specific) way of gaining the
550-
same functionality using only one header.
550+
same functionality using only one header. Note that headers added using
551+
this method are also added to redirected requests.
551552

552553

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

0 commit comments

Comments
 (0)