Permalink
Browse files

always download from http, not https

  • Loading branch information...
1 parent c055418 commit 7f0596fd25dd12e2c2b9e34809b482ede1683c6a @isaacs isaacs committed Nov 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cache.js
View
@@ -145,7 +145,7 @@ function addNameVersion (name, ver, cb) {
if (er) return cb(er)
if (!data.dist || !data.dist.tarball) return cb(new Error(
"No dist.tarball in package data"))
- fetch(data.dist.tarball, tgz, function (er) {
+ fetch(data.dist.tarball.replace(/^https/,'http'), tgz, function (er) {
if (er) return cb(er)
addLocalTarball(tgz, cb)
})

0 comments on commit 7f0596f

Please sign in to comment.