Browse Source

caddyhttp: Check for invalid subdirectives of static_response

Ref: https://caddy.community/t/acme-server-implementation/11256/
master
Matthew Holt 4 years ago
parent
commit
8ec90f1c40
No known key found for this signature in database GPG Key ID: 2A349DD577D586A5
  1. 2
      modules/caddyhttp/staticresp.go

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

Loading…
Cancel
Save