Closed brpvieira closed 3 years ago
In node versions > 10 fs.stat throws invalid path errors synchronously, this crashes node-static as described here. Wrapping the fs.stat call in try .. catch block allows node-static to gracefully respond to the bad request with a 404.
In node versions > 10 fs.stat throws invalid path errors synchronously, this crashes node-static as described here. Wrapping the fs.stat call in try .. catch block allows node-static to gracefully respond to the bad request with a 404.