deps: accepts@~1.2.2

This commit is contained in:
Douglas Christopher Wilson
2015-01-01 22:07:12 -05:00
parent b1e36ccbf5
commit 267913151b
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -2,6 +2,9 @@ unreleased
==========
* Add link to root directory
* deps: accepts@~1.2.2
- deps: mime-types@~2.0.7
- deps: negotiator@0.5.0
* deps: batch@0.5.2
* deps: debug@~2.1.1
* deps: mime-types@~2.0.7
+1 -1
View File
@@ -148,7 +148,7 @@ exports = module.exports = function serveIndex(root, options){
// content-negotiation
var accept = accepts(req);
var type = accept.types(mediaTypes);
var type = accept.type(mediaTypes);
// not acceptable
if (!type) return next(createError(406));
+1 -1
View File
@@ -6,7 +6,7 @@
"license": "MIT",
"repository": "expressjs/serve-index",
"dependencies": {
"accepts": "~1.1.4",
"accepts": "~1.2.2",
"batch": "0.5.2",
"debug": "~2.1.1",
"http-errors": "~1.2.8",