Skip to content

Commit

Permalink
fileserver: Fix Caddyfile parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed Oct 31, 2024
1 parent b129ed6 commit 350ad38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/caddyhttp/fileserver/caddyfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 350ad38

Please # to comment.