Files
zooqueenandHanzo Dev 67d6d872e3 compress: send an uncompressed response's status once
When the middleware decides not to compress a response (its type is
excluded or not included, it is already encoded, or its type does not
parse), Write sent the held status but left headersSent false, so close
sent it again. net/http logs that second call as "superfluous
response.WriteHeader call", once per such response: under a config that
compresses only text bodies, once per streamed completion.

The four branches now go through pass, which sends the status, marks it
sent, and writes the body through.

Co-authored-by: Hanzo Dev <[email protected]>
2026-10-15 05:33:26 -07:00
..