mirror of
https://github.com/openfaas/faas.git
synced 2025-06-13 10:46:46 +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
|
// Connection header field. These are the headers defined by the
|
||||||
// obsoleted RFC 2616 (section 13.5.1) and are used for backward
|
// obsoleted RFC 2616 (section 13.5.1) and are used for backward
|
||||||
// compatibility.
|
// compatibility.
|
||||||
|
// Copied from: https://golang.org/src/net/http/httputil/reverseproxy.go
|
||||||
var hopHeaders = []string{
|
var hopHeaders = []string{
|
||||||
"Connection",
|
"Connection",
|
||||||
"Proxy-Connection", // non-standard but still sent by libcurl and rejected by e.g. google
|
"Proxy-Connection", // non-standard but still sent by libcurl and rejected by e.g. google
|
||||||
|
Loading…
x
Reference in New Issue
Block a user