[issue17322] urllib.request add_header() currently allows trailing spaces (and other weird stuff)

R. David Murray report at bugs.python.org
Sun Mar 3 16:20:24 CET 2013


R. David Murray added the comment:

Ah, but that's a draft and not approved.  Hmm.  There is a possibility this change would break code, if the code tries to look up a header by the same key it used to set it.  On the other hand, the key use for the set is already modified by the existing code...difficult call.

Having looked in more detail at the test, I think it actually belongs in test_urllib2.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17322>
_______________________________________


More information about the Python-bugs-list mailing list