Comparing version 1.0.0 to 1.0.1
@@ -98,3 +98,3 @@ // Load modules | ||
else { | ||
result[$1] = $4 || $5; | ||
result[$1] = $4 || $5 || ''; | ||
} | ||
@@ -101,0 +101,0 @@ |
{ | ||
"name": "content", | ||
"description": "HTTP Content-* headers parsing", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"repository": "git://github.com/hapijs/content", | ||
@@ -6,0 +6,0 @@ "main": "index", |
@@ -1,2 +0,2 @@ | ||
#content | ||
# content | ||
@@ -3,0 +3,0 @@ HTTP Content-* headers parsing. |
@@ -75,2 +75,18 @@ // Load modules | ||
it('parses header', function (done) { | ||
var header = 'form-data; name="file"; filename=file.jpg'; | ||
expect(Content.disposition(header)).to.deep.equal({ name: 'file', filename: 'file.jpg' }); | ||
done(); | ||
}); | ||
it('parses header (empty filename)', function (done) { | ||
var header = 'form-data; name="file"; filename=""'; | ||
expect(Content.disposition(header)).to.deep.equal({ name: 'file', filename: '' }); | ||
done(); | ||
}); | ||
it('handles language filename', function (done) { | ||
@@ -77,0 +93,0 @@ |
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
11942
179