diff --git a/lib/http.js b/lib/http.js index 0d7625c7497..097e8cefaba 100644 --- a/lib/http.js +++ b/lib/http.js @@ -555,7 +555,7 @@ exports.cat = function (url, encoding) { var uri = exports.parseUri(url); var client = exports.createClient(uri.port || 80, uri.host); - var req = client.get(uri.path || "/"); + var req = client.get(uri.path || "/", uri.host ? {"Host" : uri.host} : {}); client.addListener("error", function () { promise.emitError();