Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ruckc authored Aug 3, 2024
1 parent eeb9e4e commit fe3dc4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/goproxygo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func reverseProxyHandler(destination *url.URL) *httputil.ReverseProxy {
req.Header.Set("Origin", fmt.Sprintf("%s://%s", destination.Scheme, destination.Host))
req.Header.Set("X-Forwarded-Proto", req.URL.Scheme)
req.Header.Set("X-Forwarded-Host", req.Host)
req.Header.Set("X-Forwarded-Port", req.Port)
req.Header.Set("X-Forwarded-Port", req.URL.Port)
req.Header.Set("Host", req.Host)
req.Host = req.URL.Host
req.URL.Scheme = destination.Scheme
Expand Down

0 comments on commit fe3dc4d

Please sign in to comment.