Comparing version 1.0.6 to 1.0.7
@@ -0,2 +1,6 @@ | ||
1.0.7 / 2014-07-04 | ||
================== | ||
* Fix wrong type returned from `type` when match after unknown extension | ||
1.0.6 / 2014-06-24 | ||
@@ -3,0 +7,0 @@ ================== |
@@ -63,4 +63,4 @@ var Negotiator = require('negotiator') | ||
if (!this.headers.accept) return types[0]; | ||
var mimes = types.map(extToMime).filter(validMime); | ||
var accepts = n.mediaTypes(mimes); | ||
var mimes = types.map(extToMime); | ||
var accepts = n.mediaTypes(mimes.filter(validMime)); | ||
var first = accepts[0]; | ||
@@ -67,0 +67,0 @@ if (!first) return false; |
{ | ||
"name": "accepts", | ||
"description": "Higher-level content negotiation", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9008