projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
18676: more tweaks after review comments: clarify logic in checkToken
[arvados.git]
/
lib
/
controller
/
proxy.go
diff --git
a/lib/controller/proxy.go
b/lib/controller/proxy.go
index 9eac9362c94f9e387b657e0a8cf57754d33e2143..13dfcac16abb0bb27c7b1f3d50d024436453f97c 100644
(file)
--- a/
lib/controller/proxy.go
+++ b/
lib/controller/proxy.go
@@
-9,7
+9,7
@@
import (
"net/http"
"net/url"
"net/http"
"net/url"
- "git.
curoverse.com
/arvados.git/sdk/go/httpserver"
+ "git.
arvados.org
/arvados.git/sdk/go/httpserver"
)
type proxy struct {
)
type proxy struct {
@@
-42,6
+42,9
@@
var dropHeaders = map[string]bool{
"Accept-Encoding": true,
"Content-Encoding": true,
"Transfer-Encoding": true,
"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)
}
type ResponseFilter func(*http.Response, error) (*http.Response, error)
@@
-77,9
+80,7
@@
func (p *proxy) Do(
Header: hdrOut,
Body: reqIn.Body,
}).WithContext(reqIn.Context())
Header: hdrOut,
Body: reqIn.Body,
}).WithContext(reqIn.Context())
-
- resp, err := client.Do(reqOut)
- return resp, err
+ return client.Do(reqOut)
}
// Copy a response (or error) to the downstream client
}
// Copy a response (or error) to the downstream client