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:
parent
ab6fd9e53e
commit
7533f58fb2
1 changed files with 4 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue