diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-09-10 14:13:52 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-09-10 14:13:52 -0600 |
commit | d9136fb0a0d4264283fb32ed421dfac7475566cc (patch) | |
tree | 19963ea26b7d0a411914962809dd880f03b26b25 /modules/caddyhttp/rewrite | |
parent | c32b7e8865224b124a9be999317f87d45e2b2a48 (diff) |
rewrite: Caddyfile directive should always invoke a rehandle
This is unless each route's matcher is dynamically executed after
previous handlers...
Diffstat (limited to 'modules/caddyhttp/rewrite')
-rw-r--r-- | modules/caddyhttp/rewrite/caddyfile.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/caddyhttp/rewrite/caddyfile.go b/modules/caddyhttp/rewrite/caddyfile.go index a977a72..f33c5c8 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 } |