From d9136fb0a0d4264283fb32ed421dfac7475566cc Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 10 Sep 2019 14:13:52 -0600 Subject: [PATCH] rewrite: Caddyfile directive should always invoke a rehandle This is unless each route's matcher is dynamically executed after previous handlers... --- modules/caddyhttp/rewrite/caddyfile.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/caddyhttp/rewrite/caddyfile.go b/modules/caddyhttp/rewrite/caddyfile.go index a977a724..f33c5c8d 100644 --- a/modules/caddyhttp/rewrite/caddyfile.go +++ b/modules/caddyhttp/rewrite/caddyfile.go @@ -33,5 +33,6 @@ func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error) for h.Next() { rewr.URI = h.Val() } + rewr.Rehandle = true return rewr, nil }