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

Senthil Kumaran report at bugs.python.org
Sun Mar 3 17:29:23 CET 2013


Senthil Kumaran added the comment:

David & Karl - 

I had been thinking on this. My understanding of the RFC implies that "server" should reject when the headers contain the whitespace and I had a little concern if the client library should feel free to cleanup a wrongly set headers? Would it be a good idea to see what curl is doing?

----------

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


More information about the Python-bugs-list mailing list