-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Figure out story for object content encodings #131
Comments
Don't forget:
|
This is made more difficult by Google-internal bug 24347854 (which I just discovered): if you upload invalid gzip content and then go to read it back, you always get HTTP 503 no matter what you set for |
Filed Google-internal bug 24347482 for the underspecified documentation on what GCS is expected to do in a bunch of cases. |
I've come to the conclusion that Brain dump about how the
If I set |
Here is a patch that starts to add |
GCS objects have a
contentEncoding
property, sort of but not really documented here. That page implies that maybe it is always echoed asContent-Encoding
when serving a read for the object, but it's not clear. This page says that it's intended to work with a value ofgzip
, and sort of implies by omission that it's not intended to work with other encodings. This page has slightly more detail about motivations and behavior.Throw into the mix the fact that Go's
http.Transport
automatically setsAccept-Encoding: gzip
on requests if no otherAccept-Encoding
is set (cf.Transport.DisableCompression
), then transparently decompresses if it getsContent-Encoding: gzip
back, and this starts to get confusing.To do:
contentEncoding
set, for valuesgzip
and otherwise.semantics.md
.(Thanks to Jurek Papiorek for raising this issue.)
The text was updated successfully, but these errors were encountered: