Skip to content

Commit f348154

Browse files
authored
Add note that headers added via urllib.request.add_header are added to redirected requests (#30708)
1 parent 161dff7 commit f348154

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/urllib.request.rst

+2-1
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)