[ARVADOS] updated: 2.1.0-470-g31c8d0179

Git user git at public.arvados.org
Tue Mar 2 22:06:35 UTC 2021


Summary of changes:
 lib/controller/proxy.go | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

       via  31c8d01799adf086f68499fce9a7855e254bbddf (commit)
      from  345455504379f59947c21c8a02c60d16ed73f9e4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 31c8d01799adf086f68499fce9a7855e254bbddf
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