4 ms·
Maybe this would help? Section 19.3 The line terminator for message-header fields is the sequence CRLF. However, we recommend that applications, when parsing
by visitor4rmindia 17y ago
Maybe this would help?
Section 19.3
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.
- tdavis 17y agoA recommendation to applications is hardly as noteworthy as a written spec. Most clients (rightly) go by the spec, as you can see in this thread (PHP and Ruby have been mentioned; Python's urllib.urlopen also fails to properly parse the CR out of headers). So, no, that doesn't help the fact that the current production server violates the spec and breaks most mainstream http clients in the process, and does so with any oversight that is trivial to fix (which should never have made it into production and indeed already has been fixed in the repo).
- blasdel 17y agoThat guidance is for how best to "be liberal in what you accept" news.yc's silly problem is in the area of "be conservative in what you emit"