diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-21 13:03:52 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-21 13:03:52 -0600 |
commit | 9d54f655aa7698ce683786dfc31b6f11df3c89d2 (patch) | |
tree | 45622139ef12ba5ae52bc6a08692721b4edb6490 /modules/caddyhttp/matchers.go | |
parent | 65195a726d9ceff4bbf870b7baa7eff20cf35381 (diff) |
Take care of remaining TODOs in the browse responder
Diffstat (limited to 'modules/caddyhttp/matchers.go')
-rw-r--r-- | modules/caddyhttp/matchers.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/caddyhttp/matchers.go b/modules/caddyhttp/matchers.go index 5eb0837..13e122a 100644 --- a/modules/caddyhttp/matchers.go +++ b/modules/caddyhttp/matchers.go @@ -26,7 +26,7 @@ type ( matchHeaderRE map[string]*matchRegexp matchProtocol string matchStarlarkExpr string - matchTable string + matchTable string // TODO: finish implementing ) func init() { @@ -245,14 +245,14 @@ func (mre *matchRegexp) match(input string, repl caddy2.Replacer, scope string) // save all capture groups, first by index for i, match := range matches { - key := fmt.Sprintf("matchers.%s.%s.%d", scope, mre.Name, i) + key := fmt.Sprintf("http.matchers.%s.%s.%d", scope, mre.Name, i) repl.Set(key, match) } // then by name for i, name := range mre.compiled.SubexpNames() { if i != 0 && name != "" { - key := fmt.Sprintf("matchers.%s.%s.%s", scope, mre.Name, name) + key := fmt.Sprintf("http.matchers.%s.%s.%s", scope, mre.Name, name) repl.Set(key, matches[i]) } } |