object_store
errors when reqwest
gzip
feature is enabled
#6842
Labels
object_store
errors when reqwest
gzip
feature is enabled
#6842
Describe the bug
Reqwest has a non-default feature
gzip
that will add theContent-Encoding: gzip
headers and automatically decompresses the gzipped responses, with the side-effect of removing theContent-Length
header. Theobject_store
crate expects theContent-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 forreqwest
AND the HTTP server supports theAccept-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 forreqwest
, theobject_store
client should continue to work when making requests against HTTP servers that support gzip compression.Additional context
N/A
The text was updated successfully, but these errors were encountered: