Issue #666 resolved

HTTP end of header list platform specific

Anonymous created an issue

For a reference

Basically when running the WSGI server with IronPython under the .NET framework on Windows the end of the lines are defined solely by <LF> and not <CR><LF> which causes CP to fail parsing the headers.

A simple patch would be to replace:

{{{ !python if line == '\r\n': # Normal end of headers break }}}


{{{ !python if line in ('\r\n', '\n'): # Normal end of headers break }}}

That would fix the problem. I do think it's safe and would not have side effects but I'd like your view on this guys.

If you're ok I'll apply the patch.

Reported by lawouach

Comments (2)

  1. Log in to comment