1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00

caddyhttp: Check for invalid subdirectives of static_response

Ref: https://caddy.community/t/acme-server-implementation/11256/
This commit is contained in:
Matthew Holt 2021-02-02 16:19:58 -07:00
parent 90284e8017
commit 8ec90f1c40
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

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