diff options
Diffstat (limited to 'handlers/proxy.go')
| -rw-r--r-- | handlers/proxy.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/handlers/proxy.go b/handlers/proxy.go index bc31059..602fc78 100644 --- a/handlers/proxy.go +++ b/handlers/proxy.go @@ -19,7 +19,7 @@ func NewProxy(targetURL string) http.Handler { // The default director is mostly fine, but we want to log and ensure the Host header is correct. director := proxy.Director proxy.Director = func(req *http.Request) { - director(req) // Run the default director + director(req) // Run the default director req.Host = target.Host // Set the Host header to the target's host // Log the proxying action @@ -35,4 +35,4 @@ func NewProxy(targetURL string) http.Handler { } return proxy -}
\ No newline at end of file +} |
