summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/matchers.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-05-16 11:46:17 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-05-16 11:46:17 -0600
commitff5b4639d597203f8aec43e5eae8fe3774976d32 (patch)
treefa7f9d24494f61232c87efd6b68ee7f8909ffb00 /modules/caddyhttp/matchers.go
parentf9d93ead4ef6e099ba7e00318dce6509b0f1eda4 (diff)
Some minor updates, and get rid of OnLoad/OnUnload
Diffstat (limited to 'modules/caddyhttp/matchers.go')
-rw-r--r--modules/caddyhttp/matchers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddyhttp/matchers.go b/modules/caddyhttp/matchers.go
index 0179dd7..7df4d8f 100644
--- a/modules/caddyhttp/matchers.go
+++ b/modules/caddyhttp/matchers.go
@@ -233,14 +233,14 @@ func (mre *matchRegexp) match(input string, repl *Replacer, scope string) bool {
// save all capture groups, first by index
for i, match := range matches {
- key := fmt.Sprintf("http.matchers.%s.%s.%d", scope, mre.Name, i)
+ key := fmt.Sprintf("matchers.%s.%s.%d", scope, mre.Name, i)
repl.Map(key, match)
}
// then by name
for i, name := range mre.compiled.SubexpNames() {
if i != 0 && name != "" {
- key := fmt.Sprintf("http.matchers.%s.%s.%s", scope, mre.Name, name)
+ key := fmt.Sprintf("matchers.%s.%s.%s", scope, mre.Name, name)
repl.Map(key, matches[i])
}
}