isaacs/npm — pull request #2732 by bogushevich (2012-08-20 02:44:28+00:00)
Title: Set https-proxy to http by default in "utils/fetch.js"

When I set "proxy" property in config, but does not set "https-proxy", I have this error:

npm http GET https://registry.npmjs.org/wordwrap
npm http 200 https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz

with this exception:
{ [Error: connect ENETUNREACH] code: 'ENETUNREACH', errno: 'ENETUNREACH', syscal
l: 'connect' }

I find in "utils/fetch.js" that that for HTTPS protocol by default does not use "proxy" property, and this cause error.

P.S. Sorry for my English :)