mirror of
https://github.com/openfaas/faas.git
synced 2025-06-10 01:06:47 +00:00
Quote source of hop headers
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
parent
78c127619e
commit
485a33e4fb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user