]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add note that headers added via urllib.request.add_header are added to redirected...
authorAshwin Ramaswami <aramaswamis@gmail.com>
Wed, 27 Apr 2022 22:25:03 +0000 (18:25 -0400)
committerGitHub <noreply@github.com>
Wed, 27 Apr 2022 22:25:03 +0000 (16:25 -0600)
Doc/library/urllib.request.rst

index a8501ab863968fcaf5aa0ccd40b4c3381f2e52f7..3823981b37c400bec0af5dbbe4f68f31b4be6ed1 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)