dry-underscore
Advanced tools
Comparing version 0.17.0 to 0.17.1
@@ -27,4 +27,4 @@ function library(){ | ||
line = line.split(":"); | ||
if(line.length !== 2){ return _.log.warning("malformed header: ", line); } | ||
headers[_.trim(line[0])] = _.trim(line[1]); | ||
if(line.length < 2){ return _.log.warning("malformed header: ", line); } | ||
headers[_.trim(_.first(line))] = _.trim(_.rest(line).join(":")); | ||
}); | ||
@@ -31,0 +31,0 @@ |
@@ -126,3 +126,3 @@ "use strict"; | ||
eq(res.status, 200); | ||
eq(_.pick(res.headers, "foo", "bar"), { "foo": "foo", "bar": "bar" }); | ||
eq(_.pick(res.headers, "foo", "bar", "many_colon"), { "foo": "foo", "bar": "bar", "many_colon": "foo:bar:baz:2:00pm" }); | ||
done(); | ||
@@ -129,0 +129,0 @@ }); |
{ | ||
"name": "dry-underscore", | ||
"version": "0.17.0", | ||
"version": "0.17.1", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "formidable": { |
{ | ||
"name": "dry-underscore", | ||
"version": "0.17.0", | ||
"version": "0.17.1", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "description": "The DRY Undescore Library", |
@@ -90,3 +90,3 @@ | ||
eq(res.status, 200); | ||
eq(_.pick(res.headers, "foo", "bar"), { "foo": "foo", "bar": "bar" }); | ||
eq(_.pick(res.headers, "foo", "bar", "many_colon"), { "foo": "foo", "bar": "bar", "many_colon": "foo:bar:baz:2:00pm" }); | ||
done(); | ||
@@ -93,0 +93,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
1820011
123