Support overriding Host header #5

Merged
merged 1 commit into from Sep 24, 2012
View
2 lib/http-console.js
@@ -92,7 +92,7 @@ this.Console.prototype = new(function () {
this.request = function (method, path, headers, callback) {
var request, that = this;
- this.headers['Host'] = this.host;
+ this.headers['Host'] = this.headers['Host'] || this.host;
for (var k in this.headers) { headers[k] = this.headers[k]; }