You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// DisableCompression, if true, prevents the Transport from// requesting compression with an "Accept-Encoding: gzip"// request header when the Request contains no existing// Accept-Encoding value. If the Transport requests gzip on// its own and gets a gzipped response, it's transparently// decoded in the Response.Body. However, if the user// explicitly requested gzip it is not automatically// uncompressed.DisableCompressionbool
So if user by any chance adds header Accept-Encoding: gzip manually via resty then response will have an issue.
Goal is to add grace handling support for user error.
The text was updated successfully, but these errors were encountered:
As everyone knows, certainly Go default client handles Gzip response. However there is a catch in it.
From https://github.com/golang/go/blob/master/src/net/http/transport.go
So if user by any chance adds header
Accept-Encoding: gzip
manually viaresty
then response will have an issue.Goal is to add grace handling support for user error.
The text was updated successfully, but these errors were encountered: