]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add note that headers added via urllib.request.add_header are added to redirected...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 27 Apr 2022 22:26:42 +0000 (15:26 -0700)
committerGitHub <noreply@github.com>
Wed, 27 Apr 2022 22:26:42 +0000 (16:26 -0600)
(cherry picked from commit f348154c8f8a9c254503306c59d6779d4d09b3a9)

Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
Doc/library/urllib.request.rst

index 9573683dd05944d0e6b29157cc668e6df481f7c6..39d1a277aa6c7575f735155d8083172a7574360a 100644 (file)
@@ -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)