projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7c424b
)
17437: Don't copy incoming Content-Length header when proxying.
author
Tom Clegg <tom@curii.com>
Tue, 20 Apr 2021 16:17:30 +0000
(12:17 -0400)
committer
Tom Clegg <tom@curii.com>
Tue, 20 Apr 2021 16:17:30 +0000
(12:17 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
lib/controller/proxy.go
patch
|
blob
|
history
diff --git
a/lib/controller/proxy.go
b/lib/controller/proxy.go
index d7381860ea422299406e0a38e726f6d09bb38481..13dfcac16abb0bb27c7b1f3d50d024436453f97c 100644
(file)
--- 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)