Skip to content

Commit 8f751a6

Browse files
committed
Re-add Host overwrite in proxy
1 parent f0e34dd commit 8f751a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

api/proxy/proxy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ func NewServer(
9292
// The rest is proxied.
9393
// HTTP handler to forward requests
9494
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
95+
r.Host = targetURL.Host
9596
proxy.ServeHTTP(w, r)
9697
})
9798

0 commit comments

Comments
 (0)