[Python-checkins] r50842 - in python/trunk: Lib/test/test_urllib2.py Lib/urllib.py Lib/urllib2.py Misc/NEWS

Jack Diederich jackdied at jackdied.com
Wed Jul 26 17:27:05 CEST 2006


On Wed, Jul 26, 2006 at 09:40:19AM +0200, georg.brandl wrote:
> Author: georg.brandl
> Date: Wed Jul 26 09:40:17 2006
> New Revision: 50842
> 
> Modified:
>    python/trunk/Lib/test/test_urllib2.py
>    python/trunk/Lib/urllib.py
>    python/trunk/Lib/urllib2.py
>    python/trunk/Misc/NEWS
> Log:
> Bug #1459963: properly capitalize HTTP header names.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html
Section 4.2 "Field names are case-insensitive"

So "properly" might not be the best word.  That said this does seem to be
the most popular way to case them.  The bug submitter doesn't say what
broken server he was having trouble with that demanded them in this format.
I expect this change will break someone's [equally broken] tests though
not as many as it fixes.

-Jack


More information about the Python-checkins mailing list