summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshwin Ramaswami <aramaswamis@gmail.com>2022-04-27 22:25:03 (GMT)
committerGitHub <noreply@github.com>2022-04-27 22:25:03 (GMT)
commitf348154c8f8a9c254503306c59d6779d4d09b3a9 (patch)
treefe0d3b303ec9890c13ec24af745d750ebbf1b6dc
parent161dff7e10eeb7eaf6d418b91e993aaf84770a5c (diff)
downloadcpython-f348154c8f8a9c254503306c59d6779d4d09b3a9.zip
cpython-f348154c8f8a9c254503306c59d6779d4d09b3a9.tar.gz
cpython-f348154c8f8a9c254503306c59d6779d4d09b3a9.tar.bz2
Add note that headers added via urllib.request.add_header are added to redirected requests (#30708)
-rw-r--r--Doc/library/urllib.request.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index a8501ab..3823981 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)