Browse Source

Accept LF in http responses instead of CRLF too

personal/stbuehler/wip
Stefan Bühler 13 years ago
parent
commit
2a29965dc5
  1. 3
      src/main/http_response_parser.rl

3
src/main/http_response_parser.rl

@ -53,7 +53,8 @@
HT = '\t';
DQUOTE = '"';
CRLF = CR LF;
# RFC 2616 requires CRLF = CR LF; but many backends only send us LF (especially cgi)
CRLF = (CR LF | LF);
LWS = CRLF? (SP | HT)+; # linear white space
TEXT = (OCTET - CTL) | LWS;
HEX = [a-fA-F0-9];

Loading…
Cancel
Save