You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments