http: Remove {...query_string} placeholder, in favor of {...query}

I am not sure if the query_string one is necessary or useful yet. We
can always add it later if needed.
This commit is contained in:
Matthew Holt
2020-01-10 17:02:11 -07:00
parent d418e319ab
commit 2eda21ec6d
4 changed files with 2 additions and 9 deletions
@@ -149,7 +149,7 @@ func parsePHPFastCGI(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error
}),
}
rewriteHandler := rewrite.Rewrite{
URI: "{http.matchers.file.relative}{http.request.uri.query_string}",
URI: "{http.matchers.file.relative}?{http.request.uri.query}",
}
rewriteRoute := caddyhttp.Route{
MatcherSetsRaw: []caddy.ModuleMap{rewriteMatcherSet},