Skip to content

Commit

Permalink
Possible to override Host header
Browse files Browse the repository at this point in the history
  • Loading branch information
tikonen committed May 4, 2012
1 parent 2b0ffd1 commit 9d9bc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http-console.js
Expand Up @@ -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]; }

Expand Down

0 comments on commit 9d9bc5d

Please sign in to comment.