New submission from Alix Lourme alix.lourme@gmail.com:
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.
---------- assignee: docs@python components: Documentation messages: 387736 nosy: axel3rd, docs@python priority: normal severity: normal status: open title: [Doc][urllib.request] Explicit the fact that header keys are sent in Camel case type: behavior versions: Python 3.10
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue43331 _______________________________________
Change by Alix Lourme alix.lourme@gmail.com:
---------- keywords: +patch pull_requests: +23446 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24661
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue43331 _______________________________________