explicitly undefined dotfiles, with note
This commit is contained in:
		
							parent
							
								
									841d6b3948
								
							
						
					
					
						commit
						dfcd5543ea
					
				@ -98,8 +98,9 @@ function loadPages(pkgConf, route, req, res, next) {
 | 
			
		||||
 | 
			
		||||
        //console.log('[static mount]', pkgpath);
 | 
			
		||||
        // https://github.com/expressjs/serve-static/issues/54
 | 
			
		||||
        // https://github.com/pillarjs/send/issues/91
 | 
			
		||||
        // https://example.com/.well-known/acme-challenge/xxxxxxxxxxxxxxx
 | 
			
		||||
        staticServer = require('serve-static')(pkgpath, { dotfiles: 'allow' });
 | 
			
		||||
        staticServer = require('serve-static')(pkgpath, { dotfiles: undefined });
 | 
			
		||||
        resolve(staticServer);
 | 
			
		||||
      });
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user