Ticket #666 (defect)
Opened 1 year ago
Last modified 1 year ago
HTTP end of header list platform specific
Status: closed (fixed)
| Reported by: | lawouach | Assigned to: | lawouach |
|---|---|---|---|
| Priority: | low | Milestone: | 3.1 |
| Component: | CherryPy code | Keywords: | ironpython |
| Cc: |
For a reference http://lists.ironpython.com/pipermail/users-ironpython.com/2007-March/004604.html
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
by:
!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.
Change History
03/04/07 04:43:05: Modified by lawouach
- status changed from new to closed.
- resolution set to fixed.


Fixed in [1624]