Skip to content

fix(gzip): prevent gzip header flush when compression is disabled#138

Open
the729 wants to merge 1 commit intogin-contrib:masterfrom
the729:master
Open

fix(gzip): prevent gzip header flush when compression is disabled#138
the729 wants to merge 1 commit intogin-contrib:masterfrom
the729:master

Conversation

@the729
Copy link

@the729 the729 commented Jan 6, 2026

Add check for shouldCompress flag before flushing gzip writer to avoid unnecessary header writes. Also add test cases for 400 status with and without compression header.

fix #137

Add check for shouldCompress flag before flushing gzip writer to avoid unnecessary header writes. Also add test cases for 400 status with and without compression header.

fix gin-contrib#137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Non-200 chunked response got garbled data

1 participant