diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-04-27 22:26:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 22:26:42 (GMT) |
commit | e25799d27d049237849c471b25db3b128b1bfa08 (patch) | |
tree | 3092edaa1ae56613937e33980c5e5b0f24258b8b /Doc/library/urllib.request.rst | |
parent | e2514cb77fcbdb5c733ae2532802a78e7cb08e79 (diff) | |
download | cpython-e25799d27d049237849c471b25db3b128b1bfa08.zip cpython-e25799d27d049237849c471b25db3b128b1bfa08.tar.gz cpython-e25799d27d049237849c471b25db3b128b1bfa08.tar.bz2 |
Add note that headers added via urllib.request.add_header are added to redirected requests (GH-30708) (#92004)
(cherry picked from commit f348154c8f8a9c254503306c59d6779d4d09b3a9)
Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
Co-authored-by: Ashwin Ramaswami <aramaswamis@gmail.com>
Diffstat (limited to 'Doc/library/urllib.request.rst')
-rw-r--r-- | Doc/library/urllib.request.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index 9573683..39d1a27 100644 --- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -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) |