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
We serve simple web pages using a compress handler (middleware).
This handler sets the header "Content-Encoding" to "gzip" if requested. If the served page ends up in a 404 and is served via net/http.serveError, the newly introduced deletion of http headers breaks the output of our system.
What did you see happen?
"Content-Encoding" header gets removed, but our content is still gzipped..
What did you expect to see?
I can see a reason why Cache-Control, Etag and Last-Modified makes sense to delete, but I don't see a reason to reset "Content-Encoding", but please remove the "Content-Encoding" from the list of deleted headers in net/http.serverError.
The text was updated successfully, but these errors were encountered:
Go version
go version go1.23.2 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
We serve simple web pages using a compress handler (middleware).
This handler sets the header "Content-Encoding" to "gzip" if requested. If the served page ends up in a 404 and is served via net/http.serveError, the newly introduced deletion of http headers breaks the output of our system.
What did you see happen?
"Content-Encoding" header gets removed, but our content is still gzipped..
What did you expect to see?
I can see a reason why Cache-Control, Etag and Last-Modified makes sense to delete, but I don't see a reason to reset "Content-Encoding", but please remove the "Content-Encoding" from the list of deleted headers in net/http.serverError.
The text was updated successfully, but these errors were encountered: