From 731d08e5848a3595a3bb56f12f0d719729c819f8 Mon Sep 17 00:00:00 2001 From: Shoubhik Bose Date: Mon, 9 Oct 2017 22:42:37 +0530 Subject: [PATCH] Pass on the original scheme (#1700) --- rest/proxy/proxy.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/rest/proxy/proxy.go b/rest/proxy/proxy.go index 7d7aef373e..6195f79e79 100644 --- a/rest/proxy/proxy.go +++ b/rest/proxy/proxy.go @@ -102,13 +102,6 @@ func newDirector(ctx context.Context, originalRequestData *goa.RequestData, targ if requestID != "" { req.Header.Set("X-Request-ID", requestID) } - // Remove all *Forwarded* headers from the request because they belong to the original request - // and we should not pass them along - for key := range req.Header { - if strings.Contains(key, "Forwarded") { - req.Header.Del(key) - } - } // Log the original and target URLs originalReqString := originalReq.String()