Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not remove content headers for 304
According to [RFC 2616 (HTTP/1.1 spec)](https://datatracker.ietf.org/doc/html/rfc2616#page-54) a `HEAD` request is supposed to return *exactly* the same entity-headers as a `GET` request would but without body. [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.2) further specifies that: "Transfer-Encoding MAY be sent in a response to a HEAD request or in a 304 (Not Modified) response" and "A server MAY send a Content-Length header field in a 304 (Not Modified) response to a conditional GET request"
- Loading branch information