mirror of https://github.com/adamdruppe/arsd.git
Do not send empty chunk for HEAD requests
HEAD requests are not supposed to have a body. MDN suggests that… > If a response to a HEAD request has a body, the response body must be ignored. Web browser seem to handle such situations well. Unfortunately, Node.js does not; instead it tries to parse the empty chunk as a new HTTP response and reports an error. (Code `HPE_INVALID_CONSTANT` with reason "Expected HTTP/")
This commit is contained in:
parent
b57bb91998
commit
4da8ec0ac4
Loading…
Reference in New Issue