classification
Title: [Doc][urllib.request] Explicit the fact that header keys are sent in Camel case
Type: behavior Stage: patch review
Components: Documentation Versions: Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: axel3rd, docs@python
Priority: normal Keywords: patch

Created on 2021-02-26 19:07 by axel3rd, last changed 2021-02-26 19:14 by axel3rd.

Pull Requests
URL Status Linked Edit
PR 24661 open axel3rd, 2021-02-26 19:14
Messages (1)
msg387736 - (view) Author: Alix Lourme (axel3rd) * Date: 2021-02-26 19:07
Currently, the Request (https://docs.python.org/3/library/urllib.request.html#urllib.request.Request) send header keys in Camel case.

This is a choice strategy (no problem with that) and even if headers should be considered insensitively (RFC 7230 - 3.2. Header Fields: https://tools.ietf.org/html/rfc7230#section-3.2), this is not always the case.

The fact that header keys are "rewritten" (in Camel case) could occurs complexity in troubleshooting (for sample: https://github.com/probot/adapter-aws-lambda-serverless/issues/62).

Having a note/mention about that in documentation would be nice.

PR will come.
History
Date User Action Args
2021-02-26 19:14:45axel3rdsetkeywords: + patch
stage: patch review
pull_requests: + pull_request23446
2021-02-26 19:07:45axel3rdcreate