Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
rewrite: Caddyfile directive should always invoke a rehandle
This is unless each route's matcher is dynamically executed after previous handlers...
Matthew Holt committed
Sep 10, 2019 at 14:13 UTC
d9136fb0a0d4264283fb32ed421dfac7475566cc
1 file changed
+1
modules/caddyhttp/rewrite/caddyfile.go
+1
@@ -33,5 +33,6 @@ func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error)
33
for h.Next() {
34
rewr.URI = h.Val()
35
}
36
+ rewr.Rehandle = true
37
return rewr, nil
38
}