Comparing version 1.2.1 to 1.2.2
@@ -58,3 +58,10 @@ function RequestLine(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); | ||
} | ||
return fragments.join(''); | ||
}, | ||
@@ -61,0 +68,0 @@ set: function (protocol) { |
{ | ||
"name": "messy", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"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
79072
1714