Actions
Feature #1285
closedlighttpd-1.4.16 dont like requests with mixed "\r\n" and "\n".
ASK QUESTIONS IN Forums:
Description
lighttpd-1.4.16 dont like requests with mixed "\r\n" and "\n".
Example (perl code):
print "HEAD /index.html HTTP/1.0\r\n" . "Host: localhost\n" . # \n only "\r\n";
lighttpd waits some time and then kills the connection.
there is no logging for this request.
Updated by admin over 15 years ago
Does it work with all '\n'?
HTTP requires \r\n, so this isn't a bug in the web server but in the client.
Updated by ralf over 15 years ago
Replying to Olaf van der Spek:
Does it work with all '\n'?
No.
HTTP requires \r\n, so this isn't a bug in the web server but in the client.
Yes but rfc2616 #19.3 says: "The line terminator for message-header fields is the sequence CRLF. However, we recommend that applications, when parsing such headers, recognize a single LF as a line terminator and ignore the leading CR.".
So its not a bug, its a feature.
Updated by glen about 15 years ago
- Status changed from New to Fixed
- Resolution set to wontfix
Actions
Also available in: Atom