Comparing version 4.3.0 to 4.3.1
@@ -77,3 +77,5 @@ function RequestLine(obj) { | ||
} | ||
return fragments.join(''); | ||
if (fragments.length > 0) { | ||
return fragments.join(''); | ||
} | ||
}, | ||
@@ -80,0 +82,0 @@ set: function (protocol) { |
@@ -57,3 +57,12 @@ function StatusLine(obj) { | ||
get: function () { | ||
return String(this.protocolName).toUpperCase() + '/' + this.protocolVersion; | ||
var fragments = []; | ||
if (typeof this.protocolName !== 'undefined') { | ||
fragments.push(String(this.protocolName).toUpperCase()); | ||
} | ||
if (typeof this.protocolVersion !== 'undefined') { | ||
fragments.push(this.protocolVersion); | ||
} | ||
if (fragments.length > 0) { | ||
return fragments.join('/'); | ||
} | ||
}, | ||
@@ -60,0 +69,0 @@ set: function (protocol) { |
{ | ||
"name": "messy", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "Object model for HTTP and RFC822 messages", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
112929
2333