Permalink
Browse files

Merge pull request #7 from wpreul/master

Prevent exception from null e
  • Loading branch information...
federomero committed Jun 5, 2013
2 parents 5f25686 + 60da34d commit 2830cd0155cd00e9e116076d62ee88fcee891f6c
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/encoding.js
  2. +1 −1 package.json
View
@@ -13,7 +13,7 @@ function parseAcceptEncoding(accept) {
}
if (!acceptableEncodings.some(function(e) {
- return e.encoding === 'identity';
+ return e && e.encoding === 'identity';
})) {
acceptableEncodings.push({
encoding: 'identity',
View
@@ -1,7 +1,7 @@
{
"name": "negotiator",
"description": "HTTP content negotiation",
- "version": "0.2.5",
+ "version": "0.2.6",
"author": "Federico Romero <federico.romero@outboxlabs.com>",
"contributors": ["Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)"],
"repository": {

0 comments on commit 2830cd0

Please sign in to comment.