[ARVADOS] created: 2.1.0-673-gba6c20de9
Git user
git at public.arvados.org
Tue Apr 20 16:17:56 UTC 2021
at ba6c20de92c9821c2d674001ce0663c6d8ed9aa8 (commit)
commit ba6c20de92c9821c2d674001ce0663c6d8ed9aa8
Author: Tom Clegg <tom at curii.com>
Date: Tue Apr 20 12:17:30 2021 -0400
17437: Don't copy incoming Content-Length header when proxying.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curii.com>
diff --git a/lib/controller/proxy.go b/lib/controller/proxy.go
index d7381860e..13dfcac16 100644
--- a/lib/controller/proxy.go
+++ b/lib/controller/proxy.go
@@ -42,6 +42,9 @@ var dropHeaders = map[string]bool{
"Accept-Encoding": true,
"Content-Encoding": true,
"Transfer-Encoding": true,
+
+ // Content-Length depends on encoding.
+ "Content-Length": true,
}
type ResponseFilter func(*http.Response, error) (*http.Response, error)
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list