Skip to content

Commit

Permalink
Merge branch 'master' into dheerajsingh0-caddyserver#5858-Revise-redi…
Browse files Browse the repository at this point in the history
…r-status-code-shortcuts
  • Loading branch information
dheerajsingh0 committed Oct 10, 2023
2 parents f7e1073 + 5653c36 commit b765d42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/caddyhttp/templates/tplcontext.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ func (c TemplateContext) funcHTTPInclude(uri string) (string, error) {
return "", err
}
virtReq.Host = c.Req.Host
virtReq.RemoteAddr = "127.0.0.1:10000" // https://github.com/caddyserver/caddy/issues/5835
virtReq.Header = c.Req.Header.Clone()
virtReq.Header.Set("Accept-Encoding", "identity") // https://github.com/caddyserver/caddy/issues/4352
virtReq.Trailer = c.Req.Trailer.Clone()
Expand Down

0 comments on commit b765d42

Please sign in to comment.