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

fileserver: Fix Caddyfile parsing

Reported at https://github.com/mholt/caddy-sqlite-fs/issues/3
This commit is contained in:
Matthew Holt 2024-10-31 10:37:37 -06:00
parent b129ed6be8
commit 350ad38f63
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -78,7 +78,7 @@ func (fsrv *FileServer) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
return d.ArgErr()
}
for d.NextBlock(0) {
for nesting := d.Nesting(); d.NextBlock(nesting); {
switch d.Val() {
case "fs":
if !d.NextArg() {