[issue17322] urllib.request add_header() currently allows trailing spaces (and other weird stuff)
karl
report at bugs.python.org
Sun Mar 3 04:08:08 CET 2013
karl added the comment:
I created 4 tests for testing trailing and leading spaces on
* add_unredirected_header()
* add_header()
and modified the functions.
Tests passed.
→ ./python.exe Lib/test/test_urllib2net.py
[…]
test_headers_with_spaces (__main__.OtherNetworkTests) ... ok
[…]
----------------------------------------------------------------------
Ran 16 tests in 17.148s
OK (skipped=1)
[137988 refs]
See the patch issue-17322-1.patch
----------
keywords: +patch
Added file: http://bugs.python.org/file29292/issue-17322-1.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17322>
_______________________________________
More information about the Python-bugs-list
mailing list