diff --git a/lib/agent.js b/lib/agent.js index 1b4aa27..c501642 100644 --- a/lib/agent.js +++ b/lib/agent.js @@ -39,7 +39,7 @@ TestAgent.prototype.host = function(host) { // override HTTP verb methods methods.forEach(function(method) { TestAgent.prototype[method] = function(url, fn) { // eslint-disable-line no-unused-vars - const req = new Test(this.app, method.toUpperCase(), url, this._host); + const req = new Test(this.app, method.toUpperCase(), url); if (this._host) { req.set('host', this._host);