Skip to content

Commit

Permalink
dont override Host when forward-proxying
Browse files Browse the repository at this point in the history
Signed-off-by: Or Koren <[email protected]>
  • Loading branch information
Or Koren committed May 19, 2023
1 parent c87b1b8 commit 7324e29
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion interceptor/request_forwarder.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ func forwardRequest(
proxy.Transport = roundTripper
proxy.Director = func(req *http.Request) {
req.URL = fwdSvcURL
req.Host = fwdSvcURL.Host
req.URL.Path = r.URL.Path
req.URL.RawQuery = r.URL.RawQuery
// delete the incoming X-Forwarded-For header so the proxy
Expand Down

0 comments on commit 7324e29

Please sign in to comment.