From acb5ff39d7e1f98759259f4682570ad5fc6bf751 Mon Sep 17 00:00:00 2001 From: Rajat Jain Date: Mon, 25 Jan 2021 16:24:53 +0530 Subject: [PATCH] Replace placeholders with regex groups --- modules/caddyhttp/map/map.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/caddyhttp/map/map.go b/modules/caddyhttp/map/map.go index e193f203..a0e07687 100644 --- a/modules/caddyhttp/map/map.go +++ b/modules/caddyhttp/map/map.go @@ -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 } }