diff options
author | Matthew Holt <[email protected]> | 2020-01-10 17:02:11 -0700 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2020-01-10 17:02:11 -0700 |
commit | 2eda21ec6d44fa2f57e72ef0f02ea29c902d871d (patch) | |
tree | da549a7625c16fa9af172efd7a6e432f30666e92 /modules/caddyhttp/replacer.go | |
parent | d418e319ab626e4b7dab676a7db3405d24a4b58c (diff) | |
download | caddy-2eda21ec6d44fa2f57e72ef0f02ea29c902d871d.tar.gz caddy-2eda21ec6d44fa2f57e72ef0f02ea29c902d871d.zip |
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.
Diffstat (limited to 'modules/caddyhttp/replacer.go')
-rw-r--r-- | modules/caddyhttp/replacer.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/caddyhttp/replacer.go b/modules/caddyhttp/replacer.go index 09837be57..cea820d05 100644 --- a/modules/caddyhttp/replacer.go +++ b/modules/caddyhttp/replacer.go @@ -104,8 +104,6 @@ func addHTTPVarsToReplacer(repl *caddy.Replacer, req *http.Request, w http.Respo return dir, true case "http.request.uri.query": return req.URL.RawQuery, true - case "http.request.uri.query_string": - return "?" + req.URL.RawQuery, true // original request, before any internal changes case "http.request.orig_method": @@ -128,9 +126,6 @@ func addHTTPVarsToReplacer(repl *caddy.Replacer, req *http.Request, w http.Respo case "http.request.orig_uri.query": or, _ := req.Context().Value(OriginalRequestCtxKey).(http.Request) return or.URL.RawQuery, true - case "http.request.orig_uri.query_string": - or, _ := req.Context().Value(OriginalRequestCtxKey).(http.Request) - return "?" + or.URL.RawQuery, true } // hostname labels |