google-cloud-go icon indicating copy to clipboard operation
google-cloud-go copied to clipboard

storage: ReadCompressed doesn't work with JSON reads

Open tritone opened this issue 2 years ago • 2 comments

When I was porting TestIntegration_ReadCRC to multi-transport, I noticed that it fails for JSON in cases where ReadCompressed is set with the following error: google api: custom Accept-Encoding headers not allowed.

This needs to be fixed (probably at the Apiary layer?) or at least documented since it could cause unexpected failures when using JSON downloads.

tritone avatar Apr 19 '23 05:04 tritone

This can be solved by removing the check preventing Accept-Encoding headers for media operations at the apiary level. Will open a PR for this and get feedback

BrennaEpp avatar Jul 18 '23 20:07 BrennaEpp

Can I help @BrennaEpp ? Would you guide me for this?

rubiagatra avatar Oct 12 '23 11:10 rubiagatra