Various fixes/tweaks to HTTP placeholder variables and file matching

- Rename http.var.* -> http.vars.* to be more consistent
- Prefixing a path matcher with * now invokes simple suffix matching
- Handlers and matchers that need a root path default to {http.vars.root}
- Clean replacer output on the file matcher's file selection suffix
This commit is contained in:
Matthew Holt 2019-09-06 12:36:45 -06:00
parent 21d7b662e7
commit 14f9662f9c
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
8 changed files with 25 additions and 23 deletions

View file

@ -79,7 +79,7 @@ func (Transport) CaddyModule() caddy.ModuleInfo {
// Provision sets up t.
func (t *Transport) Provision(_ caddy.Context) error {
if t.Root == "" {
t.Root = "{http.var.root}"
t.Root = "{http.vars.root}"
}
return nil
}