From a1e16e68426febb21363cf35cbc989f2a07ddad0 Mon Sep 17 00:00:00 2001 From: Ian Young Date: Thu, 24 May 2012 14:16:47 -0700 Subject: [PATCH] Use default host in request when not specified --- lib/browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/browser.js b/lib/browser.js index 0e39fb5..0625521 100644 --- a/lib/browser.js +++ b/lib/browser.js @@ -216,7 +216,7 @@ Browser.prototype.request = function(method, path, options, fn, saveHistory){ method: method , path: path , port: this.host ? this.port : (server && server.__port) - , host: this.host + , host: host , headers: headers }); req.on('response', function(res){