Accept requests with nonstandard \n newlines.
Don't crash on a malformed request.
Fixed condition for the \n newline debug message.

Due to a bug it was always shown.