update mime 1.3.4->2.4.4, sqlite3 3.1.8->4.1.1, request 2.74.0->2.88.2
This commit is contained in:
@ -46,7 +46,7 @@ function handleRequest(req, res) {
|
||||
} else if (requestUrl in urlMapping) {
|
||||
var file = urlMapping[requestUrl];
|
||||
|
||||
res.setHeader('Content-Type', mime.lookup(file));
|
||||
res.setHeader('Content-Type', mime.getType(file));
|
||||
|
||||
fs.createReadStream(file).pipe(res);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user