diff options
author | isaacs <i@izs.me> | 2011-03-01 19:57:20 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-03-01 19:57:20 +0300 |
commit | 60731e1d7ad81d247f3ab2d3b389270353f8ebb7 (patch) | |
tree | 23ebed1fa38785be17aed0b7ec10a32e0c293d45 | |
parent | 314c9efc1114a269ac39e263b0bc843e978de62e (diff) |
Closes GH-661 Set host to remote host, not proxy host
-rw-r--r-- | lib/utils/proxyify.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/proxyify.js b/lib/utils/proxyify.js index 639979cb8..aa675f3c3 100644 --- a/lib/utils/proxyify.js +++ b/lib/utils/proxyify.js @@ -26,7 +26,7 @@ function proxyify (proxyConfig, remote, opts) { "Basic " + (new Buffer(proxy.auth).toString("base64")) } - opts.headers.host = proxy.hostname + opts.headers.host = remote.hostname opts.host = proxy.hostname opts.port = +(proxy.port ? proxy.port :proxy.protocol === "https:" ? 443 |