X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/516685e09227ab64c2d4f7fd04d4b60a75fc5d0f..484cf9fec8734bc465b7d90cdfc26e1437d402cf:/lib/controller/proxy.go diff --git a/lib/controller/proxy.go b/lib/controller/proxy.go index c01c152352..939868a17b 100644 --- a/lib/controller/proxy.go +++ b/lib/controller/proxy.go @@ -9,7 +9,7 @@ import ( "net/http" "net/url" - "git.curoverse.com/arvados.git/sdk/go/httpserver" + "git.arvados.org/arvados.git/sdk/go/httpserver" ) type proxy struct { @@ -25,19 +25,23 @@ func (h HTTPError) Error() string { return h.Message } -// headers that shouldn't be forwarded when proxying. See -// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers var dropHeaders = map[string]bool{ + // Headers that shouldn't be forwarded when proxying. See + // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers "Connection": true, "Keep-Alive": true, "Proxy-Authenticate": true, "Proxy-Authorization": true, - "TE": true, - "Trailer": true, - "Transfer-Encoding": true, // *-Encoding headers interfer with Go's automatic compression/decompression - "Content-Encoding": true, + // (comment/space here makes gofmt1.10 agree with gofmt1.11) + "TE": true, + "Trailer": true, + "Upgrade": true, + + // Headers that would interfere with Go's automatic + // compression/decompression if we forwarded them. "Accept-Encoding": true, - "Upgrade": true, + "Content-Encoding": true, + "Transfer-Encoding": true, } type ResponseFilter func(*http.Response, error) (*http.Response, error)