klauspost / compress

Optimized Go Compression Packages
Other
4.77k stars 319 forks source link

gzhttp: Add TransportAlwaysDecompress option. #978

Closed klauspost closed 4 months ago

klauspost commented 4 months ago

TransportAlwaysDecompress will always decompress the response, regardless of whether we requested it or not.

Default is false, which will pass compressed data through if we did not request compression.

Replaces #977

Bonus: Remove code for Go 1.19 and older.