You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CGI script using LF line breaks in headers causes error #165
The change introduced in #138 disallows bare LFs in headers and request lines. This change is good, but it also affects CGIHandler, causing scripts that use bare LF as a header separator to fail. However, according to RFC 3875, unlike HTTP, bare LFs are allowed in CGI header syntax.
For example, the following CGI script will fail when run under WEBrick 1.8 and later:
I've you are already working on a fix, no point in duplicating effort. I'm happy to wait for your PR and will review it after it is submitted. Thank you.
Activity
jeremyevans commentedon Mar 24, 2025
Thank you for the report. I agree this is a bug. I'll try to work on a fix this week.
paulownia commentedon Mar 25, 2025
Thanks! I'm preparing a fix as well. I'll submit a PR shortly. -- feel free to adjust or close it if needed.
jeremyevans commentedon Mar 25, 2025
I've you are already working on a fix, no point in duplicating effort. I'm happy to wait for your PR and will review it after it is submitted. Thank you.