-
Context: #856 Trying to understand this doc while looking on this code https://github.com/nodejs/undici/blob/main/lib/client.js#L1430 there is extra CRLF after writing the body
Is there a reason for the extra CRLF here at the end? according to the doc
"In the interest of robustness, servers SHOULD ignore any empty line(s) received where a Request-Line is expected. In other words, if the server is reading the protocol stream at the beginning of a message and receives a CRLF first, it should ignore the CRLF." so the extra CRLF that comes after the body should be ignored on the server? but at the other hand, the doc says: "Certain buggy HTTP/1.0 client implementations generate extra CRLF's after a POST request. To restate what is explicitly forbidden by the BNF, an HTTP/1.1 client MUST NOT preface or follow a request with an extra CRLF." Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@indutny wdyt? I know this is not parsing, but you are likely the most expert between us on this topic. |
Beta Was this translation helpful? Give feedback.
@indutny wdyt? I know this is not parsing, but you are likely the most expert between us on this topic.