[ARVADOS] created: 2.1.0-673-g474571865
Git user
git at public.arvados.org
Mon Apr 19 15:17:26 UTC 2021
at 474571865953620708d03b7d9467d3e3f59b863c (commit)
commit 474571865953620708d03b7d9467d3e3f59b863c
Author: Nico Cesar <nico at nicocesar.com>
Date: Mon Apr 19 11:16:34 2021 -0400
Applying https://dev.arvados.org/issues/17437#note-5 and note-8
Arvados-DCO-1.1-Signed-off-by: Nico Cesar <nico at curii.com>
diff --git a/lib/controller/proxy.go b/lib/controller/proxy.go
index d7381860e..6eefc9b99 100644
--- a/lib/controller/proxy.go
+++ b/lib/controller/proxy.go
@@ -42,6 +42,7 @@ var dropHeaders = map[string]bool{
"Accept-Encoding": true,
"Content-Encoding": true,
"Transfer-Encoding": true,
+ "Content-Length": true,
}
type ResponseFilter func(*http.Response, error) (*http.Response, error)
@@ -71,11 +72,12 @@ func (p *proxy) Do(
hdrOut.Add("Via", reqIn.Proto+" arvados-controller")
reqOut := (&http.Request{
- Method: reqIn.Method,
- URL: urlOut,
- Host: reqIn.Host,
- Header: hdrOut,
- Body: reqIn.Body,
+ Method: reqIn.Method,
+ URL: urlOut,
+ Host: reqIn.Host,
+ Header: hdrOut,
+ Body: reqIn.Body,
+ TransferEncoding: []string{"identity"},
}).WithContext(reqIn.Context())
return client.Do(reqOut)
}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list