Comparing version 4.0.1 to 4.1.0
@@ -164,3 +164,3 @@ var foldHeaderLine = require('./foldHeaderLine'), | ||
Headers.prototype.getNames = function (headerName) { | ||
Headers.prototype.getNames = function () { | ||
return Object.keys(this.valuesByName); | ||
@@ -167,0 +167,0 @@ }; |
@@ -28,2 +28,5 @@ var Message = require('./Message'), | ||
} | ||
if (typeof obj.encrypted !== 'undefined') { | ||
this.encrypted = obj.encrypted; | ||
} | ||
this.requestLine.populateFromObject(obj); | ||
@@ -30,0 +33,0 @@ return this; |
{ | ||
"name": "messy", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "Object model for HTTP and RFC822 messages", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -10,1 +10,6 @@ messy | ||
[![Dependency Status](https://david-dm.org/papandreou/messy.png)](https://david-dm.org/papandreou/messy) | ||
License | ||
------- | ||
Messy is licensed under a standard 3-clause BSD license -- see the `LICENSE` file for details. |
@@ -27,2 +27,6 @@ /*global describe, it*/ | ||
it('should accept encrypted as a parameter to the constructor', function () { | ||
expect(new HttpRequest({encrypted: true}), 'to have properties', {encrypted: true}); | ||
}); | ||
it('should accept the request line as an option to the constructor', function () { | ||
@@ -29,0 +33,0 @@ expect(new HttpRequest({requestLine: 'GET /foo HTTP/1.1'}), 'to have properties', { |
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
111184
30
2286
15