diff options
author | isaacs <i@izs.me> | 2010-09-02 19:23:39 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2010-09-02 19:23:39 +0400 |
commit | 0e3ff992ba8185b3c5559e1e5bddc8ca6d87e49c (patch) | |
tree | f54282d3363bfaca60221d5babe268c0fec9bc85 /lib/utils/default-config.js | |
parent | f4e8e5a5c3f9cb2eb1e5e39c213801d379a9e2a7 (diff) |
Require a proper proxy, if one is supplied
Diffstat (limited to 'lib/utils/default-config.js')
-rw-r--r-- | lib/utils/default-config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/default-config.js b/lib/utils/default-config.js index 6add7271b..b384458d9 100644 --- a/lib/utils/default-config.js +++ b/lib/utils/default-config.js @@ -17,7 +17,7 @@ module.exports = , "tar" : process.env.TAR || "tar" , "gzipbin" : process.env.GZIPBIN || "gzip" , tag : "latest" - , proxy : process.env.http_proxy ? ("http://" + process.env.http_proxy) : null + , proxy : process.env.http_proxy || null , root : path.join(process.execPath, "..", "..", "lib", "node") , globalconfig : path.join(process.execPath, "..", "..", "etc", "npmrc") , userconfig : path.join(process.env.HOME, ".npmrc") |