Skip to content

Commit

Permalink
Update mime requirement from ^1.6.0 to ^2.4.0 (#79)
Browse files Browse the repository at this point in the history
* Update mime requirement from ^1.6.0 to ^2.4.0

Updates the requirements on [mime](https://github.com/broofa/node-mime) to permit the latest version.
- [Release notes](https://github.com/broofa/node-mime/releases)
- [Changelog](https://github.com/broofa/node-mime/blob/master/CHANGELOG.md)
- [Commits](https://github.com/broofa/node-mime/commits/v2.4.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>

* fix breaking change in mime
  • Loading branch information
tomap authored and yoshinorin committed Jan 23, 2019
1 parent 6186d23 commit 0b9a182
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/middlewares/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = function(app) {
return;
}

res.setHeader('Content-Type', extname ? mime.lookup(extname) : 'application/octet-stream');
res.setHeader('Content-Type', extname ? mime.getType(extname) : 'application/octet-stream');

if (method === 'GET') {
data.pipe(res).on('error', next);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"chalk": "^2.4.1",
"compression": "^1.7.3",
"connect": "^3.6.6",
"mime": "^1.6.0",
"mime": "^2.4.0",
"morgan": "^1.9.0",
"opn": "^5.3.0",
"serve-static": "^1.13.2"
Expand Down

0 comments on commit 0b9a182

Please sign in to comment.