mirror of
https://github.com/hanzoai/ingress.git
synced 2026-10-26 02:47:15 +00:00
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]>