Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
caddyhttp: Check for invalid subdirectives of static_response
Ref: https://caddy.community/t/acme-server-implementation/11256/
Matthew Holt committed
Feb 2, 2021 at 16:19 UTC
8ec90f1c402b5e1aa1eea59e45f700aeb45da6ba
1 file changed
+2
modules/caddyhttp/staticresp.go
+2
@@ -99,6 +99,8 @@ func (s *StaticResponse) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
99
return d.Err("close already specified")
100
}
101
s.Close = true
102
+ default:
103
+ return d.Errf("unrecognized subdirective '%s'", d.Val())
104
}
105
}
106
}