Browse Source

rewrite: Caddyfile directive should always invoke a rehandle

This is unless each route's matcher is dynamically executed after
previous handlers...
master
Matthew Holt 5 years ago
parent
commit
d9136fb0a0
No known key found for this signature in database GPG Key ID: 2A349DD577D586A5
  1. 1
      modules/caddyhttp/rewrite/caddyfile.go

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

Loading…
Cancel
Save