diff --git a/lib/server.js b/lib/server.js index 3c7603e..b83f721 100644 --- a/lib/server.js +++ b/lib/server.js @@ -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 { diff --git a/package.json b/package.json index 2cc7da9..968fd82 100644 --- a/package.json +++ b/package.json @@ -6,10 +6,10 @@ "dependencies": { "mc-ping-updated": "0.1.0", "mcpe-ping-fixed": "0.0.3", - "mime": "^1.3.4", - "request": "^2.74.0", + "mime": "2.4.4", + "request": "2.88.2", "socket.io": "^1.3.7", - "sqlite3": "^3.1.8", + "sqlite3": "4.1.1", "winston": "^2.0.0" }, "repository": {