Replace placeholders with regex groups

This commit is contained in:
Rajat Jain 2021-01-25 16:24:53 +05:30
parent 3366384d93
commit acb5ff39d7

View file

@ -136,6 +136,7 @@ func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhtt
if output := m.Outputs[destIdx]; output == nil {
continue
} else {
output = m.re.ReplaceAllString(input, m.Outputs[destIdx].(string))
return output, true
}
}