diff options
-rw-r--r-- | modules/caddyhttp/staticresp.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/caddyhttp/staticresp.go b/modules/caddyhttp/staticresp.go index 4b11e0e..c587f5e 100644 --- a/modules/caddyhttp/staticresp.go +++ b/modules/caddyhttp/staticresp.go @@ -99,6 +99,8 @@ func (s *StaticResponse) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { return d.Err("close already specified") } s.Close = true + default: + return d.Errf("unrecognized subdirective '%s'", d.Val()) } } } |