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:
Matthew Holt 2019-09-10 14:13:52 -06:00
parent c32b7e8865
commit d9136fb0a0
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with 1 additions and 0 deletions

View File

@ -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
}