gziphandler icon indicating copy to clipboard operation
gziphandler copied to clipboard

Go middleware to gzip HTTP responses

Results 24 gziphandler issues
Sort by recently updated
recently updated
newest added

When applying the minimum size for gzip compression, we're currently not checking whether the `identity` encoding was not explicitly rejected in the headers. This fixes that.

Hi! We at @wongnai have forked gziphandler internally to add swappable gzip implementation. In production, we swap compress/gzip with our fork of [yasushi-saito/cloudflare-zlib](https://github.com/yasushi-saito/cloudflare-zlib) which result in 43% less CPU percentage...

_Dependabot Preview will be shut down on August 3rd, 2021. In order to keep getting Dependabot updates, please merge this PR and migrate to GitHub-native Dependabot before then._ Dependabot has...

dependencies

The [current method](https://github.com/NYTimes/gziphandler/blob/22d4470af89e09998fc16b35029df973932df4ae/gzip.go#L87-L91) of inferring the mime type of the uncompressed data is broken when multiple calls are made to Write and the first block of data is small. The...

I've implemented a cloudflare-zlib backend for gziphandler. This PR allows for swappable writer implementation to allow people who doesn't want to depend on native module to continue using compress/gzip. We've...

I see that the `Content-Length` header is read when a response passes through the middleware, and that it is later deleted before writing the gzipped response to prevent the EOF....

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.3.0 to 1.7.0. Release notes Sourced from github.com/stretchr/testify's releases. Minor improvements and bug fixes Minor feature improvements and bug fixes Fixes breaking change with HTTPBodyContains A breaking...

dependencies

This is part of the Ubuntu distribution for ppc64le. This helps us simplify testing later when distributions are re-building and re-releasing,For more info tag @gerrith3.

https://github.com/nytimes/gziphandler/blob/2f8bb1d30d9d69c8e0c3714da5a9917125a87769/gzip.go#L202 `len(w.buf)` is always zero at this point because of previous line: `w.buf = nil`