Project

General

Profile

Actions

Feature #1285

closed

lighttpd-1.4.16 dont like requests with mixed "\r\n" and "\n".

Added by ralf over 14 years ago. Updated about 13 years ago.

Status:
Wontfix
Priority:
Low
Category:
core
Target version:
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.

Actions #1

Updated by admin over 14 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.

Actions #2

Updated by ralf over 14 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.

Actions #3

Updated by glen over 13 years ago

  • Status changed from New to Fixed
  • Resolution set to wontfix
Actions #4

Updated by stbuehler about 13 years ago

  • Status changed from Fixed to Wontfix
Actions

Also available in: Atom