Project

General

Profile

Feature #1285

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

Added by ralf almost 13 years ago. Updated almost 12 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.

#1

Updated by admin almost 13 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.

#2

Updated by ralf almost 13 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.

#3

Updated by glen over 12 years ago

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

Updated by stbuehler almost 12 years ago

  • Status changed from Fixed to Wontfix

Also available in: Atom