mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 22:23:48 +03:00
Replace placeholders with regex groups
This commit is contained in:
parent
3366384d93
commit
acb5ff39d7
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhtt
|
||||||
if output := m.Outputs[destIdx]; output == nil {
|
if output := m.Outputs[destIdx]; output == nil {
|
||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
|
output = m.re.ReplaceAllString(input, m.Outputs[destIdx].(string))
|
||||||
return output, true
|
return output, true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue