Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-03-01 19:57:20 +0300
committerisaacs <i@izs.me>2011-03-01 19:57:20 +0300
commit60731e1d7ad81d247f3ab2d3b389270353f8ebb7 (patch)
tree23ebed1fa38785be17aed0b7ec10a32e0c293d45
parent314c9efc1114a269ac39e263b0bc843e978de62e (diff)
Closes GH-661 Set host to remote host, not proxy host
-rw-r--r--lib/utils/proxyify.js2
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