jobsite/manager: turn off compression

We're seeing some unexpected EOFs in staging deployment; going on a
hunch I've seen these before when gzip gets involved in transfering
large files so let's disable that.
This commit is contained in:
Simon de Vlieger 2024-02-15 17:46:31 +01:00 committed by Sanne Raymaekers
parent ab6fd9e53e
commit 7533f58fb2

View file

@ -180,6 +180,10 @@ func Request(method string, path string, body []byte) (*http.Response, error) {
return nil, err
}
// Don't accept any compression on the return value; it intermittently leads to unexpected EOFs during the larger
// download when the exports are requested.
req.Header.Set("Accept-Encoding", "identity")
logrus.Debugf("Request: Making a %s request to %s", method, url)
for {