[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2020-11-30 Thread Irit Katriel
Irit Katriel added the comment: Python 2-only issue. -- nosy: +iritkatriel resolution: -> out of date stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2017-10-17 Thread abraithwaite
abraithwaite added the comment: This might have been fixed by https://bugs.python.org/issue22928 Have not tested. -- nosy: +abraithwaite ___ Python tracker

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2015-05-23 Thread Tom Tanner
Tom Tanner added the comment: The patch is waiting for inclusion in 2.7.10 :/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21114 ___ ___

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2015-04-05 Thread Tom Tanner
Tom Tanner added the comment: Any chance to get this into 2.7.10? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21114 ___ ___ Python-bugs-list

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2015-01-13 Thread Tom Tanner
Tom Tanner added the comment: ping -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21114 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2014-12-10 Thread Tom Tanner
Tom Tanner added the comment: attached is the updated patch, which unfolds multiline headers but not validate them (tests included). -- Added file: http://bugs.python.org/file37409/wsgi2.diff ___ Python tracker rep...@bugs.python.org

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2014-12-09 Thread Tom Tanner
Tom Tanner added the comment: This is actually more complicated than I initially thought. According to https://www.python.org/dev/peps/pep-/#the-start-response-callable Each header_value must not include any control characters, including carriage returns or linefeeds, either embedded or at

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2014-12-09 Thread PJ Eby
PJ Eby added the comment: The fix for the server looks ok, but the validation and tests must not be changed, since they void spec compatibility and aren't a bug fix (and so must not be added to 2.7.) Indeed, if the validation library *doesn't* fail on CRLF, then *that* would be a bug, since

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2014-12-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Tom. This was made in issue4718. But tests are passed without them. So 3.x needs tests too. -- assignee: serhiy.storchaka - nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2014-11-26 Thread Tom Tanner
Tom Tanner added the comment: I confirm this fixes a bug. To reproduce it just add, e.g. X-Multline-Header: foo bar to your request. It has been fixed in Python 3 with https://github.com/python/cpython/commit/67dcb80f6e102622e4aa888930d3017fed9834de -- nosy: +tanner

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2014-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you provide tests? -- assignee: - serhiy.storchaka nosy: +pje, serhiy.storchaka stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21114

[issue21114] wsgiref.simple_server doesn't handle multi-line headers correctly

2014-03-31 Thread Alan Braithwaite
New submission from Alan Braithwaite: At wsgiref.simple_server:99, it uses the wrong field to get the headers from the request. In rfc822.Message.readheaders it describes that the headers attribute is an uninterrupted list of the lines in the header. The dict attribute of Message should