Permalink
Browse files

Merge pull request #5 from tikonen/master

Support overriding Host header
  • Loading branch information...
2 parents 2b0ffd1 + 9d9bc5d commit e5652f3eb925ad5d59064efd4b9ecf2a9fb2985e @mmalecki committed Sep 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http-console.js
View
@@ -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]; }

0 comments on commit e5652f3

Please sign in to comment.