mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-13 22:51:08 -05:00
commit
a0e6eb3ba9
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ func (p Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error) {
|
||||||
outreq.Host = rHost
|
outreq.Host = rHost
|
||||||
}
|
}
|
||||||
if v, ok := host.UpstreamHeaders["Host"]; ok {
|
if v, ok := host.UpstreamHeaders["Host"]; ok {
|
||||||
r.Host = replacer.Replace(v[len(v)-1])
|
outreq.Host = replacer.Replace(v[len(v)-1])
|
||||||
}
|
}
|
||||||
// Modify headers for request that will be sent to the upstream host
|
// Modify headers for request that will be sent to the upstream host
|
||||||
upHeaders := createHeadersByRules(host.UpstreamHeaders, r.Header, replacer)
|
upHeaders := createHeadersByRules(host.UpstreamHeaders, r.Header, replacer)
|
||||||
|
|
Loading…
Reference in a new issue