Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not auto-remove content headers for body-less status codes
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 but no body, imho responding to such a request with a 204 status code seems reasonable (if not ideal), thus we should not remove any headers but only ensure that no body is sent.
- Loading branch information