Comparing version 6.6.0 to 6.6.1
@@ -54,3 +54,3 @@ /*global btoa*/ | ||
}, this); | ||
this.requestLine.populateFromObject(obj); | ||
this.requestLine.populateFromObject(_.omit(obj, 'url')); | ||
return this; | ||
@@ -57,0 +57,0 @@ }; |
{ | ||
"name": "messy", | ||
"version": "6.6.0", | ||
"version": "6.6.1", | ||
"description": "Object model for HTTP and RFC822 messages", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -20,2 +20,7 @@ /*global describe, it*/ | ||
it('should parse a request url with a query string', function () { | ||
var httpRequest = new HttpRequest({ url: 'GET /foo?quux=baz' }); | ||
expect(httpRequest.requestLine.url, 'to equal', '/foo?quux=baz'); | ||
}); | ||
it('should parse a request line followed by headers', function () { | ||
@@ -22,0 +27,0 @@ var httpRequest = new HttpRequest('GET /foo HTTP/1.1\r\nHost: foo.com\r\n'); |
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
167896
3541