Comparing version 5.0.0 to 6.0.0
@@ -57,2 +57,5 @@ 'use strict'; | ||
req.key(this._key); | ||
if (this._host) { | ||
req.set('host', this._host); | ||
} | ||
@@ -59,0 +62,0 @@ req.on('response', this._saveCookies.bind(this)); |
@@ -30,3 +30,3 @@ 'use strict'; | ||
function Test(app, method, path, host) { | ||
function Test(app, method, path) { | ||
Request.call(this, method.toUpperCase(), path); | ||
@@ -39,3 +39,3 @@ this.redirects(0); | ||
? app + path | ||
: this.serverAddress(app, path, host); | ||
: this.serverAddress(app, path); | ||
} | ||
@@ -58,3 +58,3 @@ | ||
Test.prototype.serverAddress = function(app, path, host) { | ||
Test.prototype.serverAddress = function(app, path) { | ||
var addr = app.address(); | ||
@@ -67,3 +67,3 @@ var port; | ||
protocol = app instanceof https.Server ? 'https' : 'http'; | ||
return protocol + '://' + (host || '127.0.0.1') + ':' + port + path; | ||
return protocol + '://127.0.0.1:' + port + path; | ||
}; | ||
@@ -70,0 +70,0 @@ |
{ | ||
"name": "supertest", | ||
"version": "5.0.0", | ||
"version": "6.0.0", | ||
"description": "SuperAgent driven library for testing HTTP servers", | ||
@@ -5,0 +5,0 @@ "main": "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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
19913
361
5