mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 08:46:48 +00:00
Remove duplicated code to remove hop headers
Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
This commit is contained in:
parent
c28175c4f6
commit
02ccccbe60
@ -155,10 +155,6 @@ func copyHeaders(destination http.Header, source *http.Header) {
|
|||||||
copy(vClone, v)
|
copy(vClone, v)
|
||||||
(destination)[k] = vClone
|
(destination)[k] = vClone
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, h := range hopHeaders {
|
|
||||||
destination.Del(h)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func deleteHeaders(target *http.Header, exclude *[]string) {
|
func deleteHeaders(target *http.Header, exclude *[]string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user