From 9d54f655aa7698ce683786dfc31b6f11df3c89d2 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 21 May 2019 13:03:52 -0600 Subject: Take care of remaining TODOs in the browse responder --- modules/caddyhttp/matchers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/caddyhttp/matchers.go') 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]) } } -- cgit v1.2.3