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:
parent
364dc1ad59
commit
db4c934c8d
@ -46,7 +46,7 @@ function handleRequest(req, res) {
|
|||||||
} else if (requestUrl in urlMapping) {
|
} else if (requestUrl in urlMapping) {
|
||||||
var file = urlMapping[requestUrl];
|
var file = urlMapping[requestUrl];
|
||||||
|
|
||||||
res.setHeader('Content-Type', mime.lookup(file));
|
res.setHeader('Content-Type', mime.getType(file));
|
||||||
|
|
||||||
fs.createReadStream(file).pipe(res);
|
fs.createReadStream(file).pipe(res);
|
||||||
} else {
|
} else {
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mc-ping-updated": "0.1.0",
|
"mc-ping-updated": "0.1.0",
|
||||||
"mcpe-ping-fixed": "0.0.3",
|
"mcpe-ping-fixed": "0.0.3",
|
||||||
"mime": "^1.3.4",
|
"mime": "2.4.4",
|
||||||
"request": "^2.74.0",
|
"request": "2.88.2",
|
||||||
"socket.io": "^1.3.7",
|
"socket.io": "^1.3.7",
|
||||||
"sqlite3": "^3.1.8",
|
"sqlite3": "4.1.1",
|
||||||
"winston": "^2.0.0"
|
"winston": "^2.0.0"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
Loading…
Reference in New Issue
Block a user