summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/fileserver
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-12-17 16:30:26 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2019-12-17 16:30:26 -0700
commit724c72867835f9287b3df3ee5a0d75327c0780cf (patch)
tree2da51af8e1098655aebb25ed09e4cdd47627c278 /modules/caddyhttp/fileserver
parent21408212dafc1b37e2f2d51a4c4afbcc9cef403b (diff)
rewrite: Attempt query string fix (#2891)
Diffstat (limited to 'modules/caddyhttp/fileserver')
-rw-r--r--modules/caddyhttp/fileserver/caddyfile.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/caddyhttp/fileserver/caddyfile.go b/modules/caddyhttp/fileserver/caddyfile.go
index 8013fa2..3bd0ae4 100644
--- a/modules/caddyhttp/fileserver/caddyfile.go
+++ b/modules/caddyhttp/fileserver/caddyfile.go
@@ -127,7 +127,8 @@ func parseTryFiles(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error)
// to the end of the query string.
makeRoute := func(try []string, writeURIAppend string) []httpcaddyfile.ConfigValue {
handler := rewrite.Rewrite{
- URI: "{http.matchers.file.relative}{http.request.uri.query_string}" + writeURIAppend,
+ Rehandle: true,
+ URI: "{http.matchers.file.relative}{http.request.uri.query_string}" + writeURIAppend,
}
matcherSet := caddy.ModuleMap{
"file": h.JSON(MatchFile{