mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-04 18:17:08 +08:00 
			
		
		
		
	fileserver: Fix Caddyfile parsing
Reported at https://github.com/mholt/caddy-sqlite-fs/issues/3
This commit is contained in:
		@ -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() {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user