summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/caddyhttp/rewrite/caddyfile.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/caddyhttp/rewrite/caddyfile.go b/modules/caddyhttp/rewrite/caddyfile.go
index f33c5c8..cb65d43 100644
--- a/modules/caddyhttp/rewrite/caddyfile.go
+++ b/modules/caddyhttp/rewrite/caddyfile.go
@@ -32,6 +32,9 @@ func parseCaddyfile(h httpcaddyfile.Helper) (caddyhttp.MiddlewareHandler, error)
var rewr Rewrite
for h.Next() {
rewr.URI = h.Val()
+ if h.NextArg() {
+ return nil, h.ArgErr()
+ }
}
rewr.Rehandle = true
return rewr, nil