googleapis / googleapis/google-cloud-go

storage: ReadCompressed doesn't work with JSON reads

Open
#7,786 2 comments 0 reactions 1 assignee Assigned to @cpriti-os View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.