[issue43331] [Doc][urllib.request] Explicit the fact that header keys are sent in Camel case

Alix Lourme report at bugs.python.org
Fri Feb 26 14:07:45 EST 2021


New submission from Alix Lourme <alix.lourme at 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 at python
components: Documentation
messages: 387736
nosy: axel3rd, docs at 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 at bugs.python.org>
<https://bugs.python.org/issue43331>
_______________________________________


More information about the Python-bugs-list mailing list