summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAlix Lourme <alix.lourme@gmail.com>2022-04-14 02:19:16 (GMT)
committerGitHub <noreply@github.com>2022-04-14 02:19:16 (GMT)
commit325d6f50357474c7d9fd2475be0e2481f7ae0476 (patch)
tree1f8facc03e5706824c667b64413ede8587fed241 /Doc
parent5f056acdf28662e773ec5fe27db47ccad0e7671f (diff)
downloadcpython-325d6f50357474c7d9fd2475be0e2481f7ae0476.zip
cpython-325d6f50357474c7d9fd2475be0e2481f7ae0476.tar.gz
cpython-325d6f50357474c7d9fd2475be0e2481f7ae0476.tar.bz2
gh-87497: Document that urllib.request sends headers in camel case (GH-24661)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/urllib.request.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 88e93ba..a8501ab 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -218,6 +218,7 @@ The following classes are provided:
(X11; U; Linux i686) Gecko/20071127 Firefox/2.0.0.11"``, while
:mod:`urllib`'s default user agent string is
``"Python-urllib/2.6"`` (on Python 2.6).
+ All header keys are sent in camel case.
An appropriate ``Content-Type`` header should be included if the *data*
argument is present. If this header has not been provided and *data*