We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Test
1 parent 5e23869 commit 1c8930dCopy full SHA for 1c8930d
lib/agent.js
@@ -39,7 +39,7 @@ TestAgent.prototype.host = function(host) {
39
// override HTTP verb methods
40
methods.forEach(function(method) {
41
TestAgent.prototype[method] = function(url, fn) { // eslint-disable-line no-unused-vars
42
- const req = new Test(this.app, method.toUpperCase(), url, this._host);
+ const req = new Test(this.app, method.toUpperCase(), url);
43
44
if (this._host) {
45
req.set('host', this._host);
0 commit comments