Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #7 from wpreul/master

Prevent exception from null e
  • Loading branch information...
commit 2830cd0155cd00e9e116076d62ee88fcee891f6c 2 parents 5f25686 + 60da34d
@federomero federomero authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/encoding.js
  2. +1 −1  package.json
View
2  lib/encoding.js
@@ -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
2  package.json
@@ -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": {
Please sign in to comment.
Something went wrong with that request. Please try again.