]> 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:28:10 +0000 (15:28 -0700)
committerGitHub <noreply@github.com>
Wed, 27 Apr 2022 22:28:10 +0000 (16:28 -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 1307143a04f1d8deb37e6a2cabad44b48ddfb0a3..6f6523d8afe9fa1ce946430fa8306f9efb164d8e 100644 (file)
@@ -542,7 +542,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)