From 47cd8f0b2378ab995c81ed9b31e766fce35cf2ec Mon Sep 17 00:00:00 2001 From: Ashwin Ramaswami Date: Wed, 19 Jan 2022 15:55:30 -0500 Subject: [PATCH] Add note that headers added via urllib.request.add_header are added to redirected requests --- Doc/library/urllib.request.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst index a8501ab863968fc..3823981b37c400b 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)