[ARVADOS] created: 2.1.0-470-g5c8ec7788
Git user
git at public.arvados.org
Tue Mar 2 20:49:22 UTC 2021
at 5c8ec77888cb2ee99b00fa925c90838a17d82137 (commit)
commit 5c8ec77888cb2ee99b00fa925c90838a17d82137
Author: Nico Cesar <nico at nicocesar.com>
Date: Tue Mar 2 15:46:59 2021 -0500
Content-Lenght header is needed to avoid chunks
Arvados-DCO-1.1-Signed-off-by: Nico Cesar <nico at nicocesar.com>
diff --git a/lib/controller/proxy.go b/lib/controller/proxy.go
index d7381860e..eda96cca5 100644
--- a/lib/controller/proxy.go
+++ b/lib/controller/proxy.go
@@ -71,11 +71,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,
+ ContentLength: reqIn.ContentLength,
}).WithContext(reqIn.Context())
return client.Do(reqOut)
}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list