Message254088
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. |
|
Date |
User |
Action |
Args |
2015-11-05 07:13:24 | martin.panter | set | recipients:
+ martin.panter, facundobatista, jjlee, jcea, orsenthil, frispete, BitTorment, eric.araujo, r.david.murray, Rui.Carmo, jayvdb |
2015-11-05 07:13:24 | martin.panter | set | messageid: <1446707604.49.0.370744340794.issue2275@psf.upfronthosting.co.za> |
2015-11-05 07:13:24 | martin.panter | link | issue2275 messages |
2015-11-05 07:13:23 | martin.panter | create | |
|