Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Support overriding Host header #5

Merged
merged 1 commit into from

2 participants

@tikonen

Useful for testing e.g virtual host setups

@mmalecki
Owner

Dang. Somehow I managed to miss it. Merging now.

@mmalecki mmalecki merged commit e5652f3 into mmalecki:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 4, 2012
  1. @tikonen
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/http-console.js
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]; }
Something went wrong with that request. Please try again.