googleapis / googleapis/google-cloud-go
storage: ReadCompressed doesn't work with JSON reads
Open
api: storage
priority: p3
type: bug
- Dominant language
- Go
- Stars
- 4.5k
- Forks
- 1.6k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 109
Description
When I was porting TestIntegration_ReadCRC to multi-transport, I noticed that it fails for JSON in cases where [ReadCompressed](https://pkg.go.dev/cloud.google.com/go/storage#ObjectHandle.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.
Contributor guide
Assessment
This issue has not been assessed yet.