This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients BitTorment, Rui.Carmo, eric.araujo, facundobatista, frispete, jayvdb, jcea, jjlee, martin.panter, orsenthil, r.david.murray
Date 2015-11-05.07:13:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1446707604.49.0.370744340794.issue2275@psf.upfronthosting.co.za>
In-reply-to
Content
Rui: See Issue 12455 about changing the letter case of field names sent to the server. Unless someone wants to write a patch to fix all the bugs at once, I suggest to keep this thread focussed on Request.has_header() etc.

I closed Issue 5550 as a duplicate of this one. There is a patch there from 2014 which does the same sort of thing as John’s issue2775.patch from 2008, but IMO John’s patch would be more efficient. It needs updating for Python 3.6 though.

The remove_header() method (added in 3.4) should also be adjusted to be case-insensitive.

It may also be worth clarifying in the header_items() documentation that the keys have been converted as if by str.capitalize().

FTR: John’s issue2775.patch seems to be Patch Set 1 in the code review, despite being third in the list above.
History
Date User Action Args
2015-11-05 07:13:24martin.pantersetrecipients: + martin.panter, facundobatista, jjlee, jcea, orsenthil, frispete, BitTorment, eric.araujo, r.david.murray, Rui.Carmo, jayvdb
2015-11-05 07:13:24martin.pantersetmessageid: <1446707604.49.0.370744340794.issue2275@psf.upfronthosting.co.za>
2015-11-05 07:13:24martin.panterlinkissue2275 messages
2015-11-05 07:13:23martin.pantercreate