Describe the bug
Reqwest has a non-default feature gzip that will add the Content-Encoding: gzip headers and automatically decompresses the gzipped responses, with the side-effect of removing the Content-Length header. The object_store crate expects the Content-Length header to be present and will error otherwise.
This has the side-effect of code that was previously working could suddenly stop working if any dependency in the project enables the gzip feature for reqwest AND the HTTP server supports the Accept-Encoding: gzip header.
To Reproduce
I've created a minimal repro illustrating the bug here: https://github.com/phillipleblanc/object_store_gzip_repro
Expected behavior
Even if the gzip feature is enabled for reqwest, the object_store client should continue to work when making requests against HTTP servers that support gzip compression.
Additional context
N/A
Describe the bug
Reqwest has a non-default feature
gzipthat will add theContent-Encoding: gzipheaders and automatically decompresses the gzipped responses, with the side-effect of removing theContent-Lengthheader. Theobject_storecrate expects theContent-Lengthheader to be present and will error otherwise.This has the side-effect of code that was previously working could suddenly stop working if any dependency in the project enables the
gzipfeature forreqwestAND the HTTP server supports theAccept-Encoding: gzipheader.To Reproduce
I've created a minimal repro illustrating the bug here: https://github.com/phillipleblanc/object_store_gzip_repro
Expected behavior
Even if the
gzipfeature is enabled forreqwest, theobject_storeclient should continue to work when making requests against HTTP servers that support gzip compression.Additional context
N/A