From 02ccccbe60d6326dec6ef6a85f4fc7ea61771836 Mon Sep 17 00:00:00 2001 From: Lucas Roesler Date: Sun, 23 Jun 2019 20:30:44 +0200 Subject: [PATCH] Remove duplicated code to remove hop headers Signed-off-by: Lucas Roesler --- gateway/handlers/forwarding_proxy.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gateway/handlers/forwarding_proxy.go b/gateway/handlers/forwarding_proxy.go index 3f3cc564..e4e729a7 100644 --- a/gateway/handlers/forwarding_proxy.go +++ b/gateway/handlers/forwarding_proxy.go @@ -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) {