jspm / npm

NPM Location Service
19 stars 34 forks source link

Match the url NPM calculates to download a tarball #100

Closed cehoffman closed 8 years ago

cehoffman commented 8 years ago

NPM modifies the tarball url if the protocol doesn't match the registry used to query for the tarball. This can be inspected in npm itself here. This simply mirrors the behavior from NPM.

I discovered this because npm was working just fine, but jspm would fail to download npm resources because of a plain http proxy in the network that blocked access.

guybedford commented 8 years ago

This is great, thanks I didn't know about that!

cehoffman commented 8 years ago

@guybedford Updated to include a comment referencing the source

guybedford commented 8 years ago

Thanks so much for this!