googleapis / googleapis/google-api-go-client

gensupport/storage: allow Accept-Encoding header

Open
#2,757 0 comments 0 reactions 1 assignee Claimed by @cpriti-os View on GitHub
priority: p2 type: feature request
Dominant language
Go
Stars
4.5k
Forks
1.5k
Avg merge
1d 15h
Merged PRs (30d)
32

Description

**Is your feature request related to a problem? Please describe.**
In Storage, we use the `Accept-Encoding` header to allow users to download the zipped version of their data, see [`ReadCompressed`](https://pkg.go.dev/cloud.google.com/go/storage#ObjectHandle.ReadCompressed). We cannot support this in JSON because the header is disallowed.

**Describe the solution you'd like**
Allow the header, at least for storage media downloads. This requires changes to the generated code.

**Describe alternatives you've considered**
Allow the header in general. This can be done in gensupport. (edit: this actually would be my preferred solution, but it may impact other libraries - linked PR is for the first option)

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.