From 485a33e4fb16a3935eeb0d3957d85d1662c9b7f7 Mon Sep 17 00:00:00 2001 From: Alex Ellis Date: Wed, 3 Apr 2019 13:14:38 +0100 Subject: [PATCH] Quote source of hop headers Signed-off-by: Alex Ellis --- gateway/handlers/forwarding_proxy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gateway/handlers/forwarding_proxy.go b/gateway/handlers/forwarding_proxy.go index d9520f86..bfae4ef6 100644 --- a/gateway/handlers/forwarding_proxy.go +++ b/gateway/handlers/forwarding_proxy.go @@ -221,6 +221,7 @@ func (f FunctionPrefixTrimmingURLPathTransformer) Transform(r *http.Request) str // Connection header field. These are the headers defined by the // obsoleted RFC 2616 (section 13.5.1) and are used for backward // compatibility. +// Copied from: https://golang.org/src/net/http/httputil/reverseproxy.go var hopHeaders = []string{ "Connection", "Proxy-Connection", // non-standard but still sent by libcurl and rejected by e.g. google