mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +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)
|
||||
(destination)[k] = vClone
|
||||
}
|
||||
|
||||
for _, h := range hopHeaders {
|
||||
destination.Del(h)
|
||||
}
|
||||
}
|
||||
|
||||
func deleteHeaders(target *http.Header, exclude *[]string) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user