mirror of https://github.com/caddyserver/caddy.git
rewrite: Caddyfile directive should always invoke a rehandle
This is unless each route's matcher is dynamically executed after previous handlers...
This commit is contained in:
parent
c32b7e8865
commit
d9136fb0a0
|
@ -33,5 +33,6 @@ func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error)
|
||||||
for h.Next() {
|
for h.Next() {
|
||||||
rewr.URI = h.Val()
|
rewr.URI = h.Val()
|
||||||
}
|
}
|
||||||
|
rewr.Rehandle = true
|
||||||
return rewr, nil
|
return rewr, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue