google-cloud-go
google-cloud-go copied to clipboard
storage: ReadCompressed doesn't work with JSON reads
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.
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
Can I help @BrennaEpp ? Would you guide me for this?