diff options
author | Y.Horie <u5.horie@gmail.com> | 2021-10-17 00:09:16 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-16 11:09:16 -0400 |
commit | 64f8b557b1b1d4ca869ee7e0cba91f09e86883ef (patch) | |
tree | 0612cf6848085fdd8cb313117b995c8f9b0ea872 /modules/caddyhttp/templates/tplcontext.go | |
parent | 95c035060f66577f52158312c75ca379d7ddc21e (diff) |
fileserver: Fix compression breaks using httpInclude (#4352) (#4358)
Diffstat (limited to 'modules/caddyhttp/templates/tplcontext.go')
-rw-r--r-- | modules/caddyhttp/templates/tplcontext.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/caddyhttp/templates/tplcontext.go b/modules/caddyhttp/templates/tplcontext.go index 71886c9..b1646c1 100644 --- a/modules/caddyhttp/templates/tplcontext.go +++ b/modules/caddyhttp/templates/tplcontext.go @@ -160,6 +160,7 @@ func (c TemplateContext) funcHTTPInclude(uri string) (string, error) { } virtReq.Host = c.Req.Host 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() virtReq.Header.Set(recursionPreventionHeader, strconv.Itoa(recursionCount)) |