Skip to content

Commit

Permalink
Set upstream host correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
blaubaer committed Feb 6, 2024
1 parent 8b91b02 commit 298b134
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proxy/hints.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ func UpstreamHintsInterceptor(ctx *context.Context) (proceed bool, err error) {
if u, err := ctx.Client.RequestedUrl(); err != nil {
return false, err
} else if u != nil {
ctx.Upstream.Request.Host = u.Host
h.Set("Host", u.Host)
h.Set("X-Forwarded-Host", u.Host)
h.Set("X-Forwarded-Proto", u.Scheme)
Expand Down

0 comments on commit 298b134

Please sign in to comment.