Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 12, 07:00 UTC
fileserver: Fix Caddyfile parsing
Reported at https://github.com/mholt/caddy-sqlite-fs/issues/3
Matthew Holt committed
Oct 31, 2024 at 10:37 UTC
350ad38f63f7a49ceb3821c58d689b85a27ec4e5
1 file changed
+1
-1
modules/caddyhttp/fileserver/caddyfile.go
+1
-1
@@ -78,7 +78,7 @@ func (fsrv *FileServer) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
78
return d.ArgErr()
79
}
80
81
- for d.NextBlock(0) {
81
+ for nesting := d.Nesting(); d.NextBlock(nesting); {
82
switch d.Val() {
83
case "fs":
84
if !d.NextArg() {