npm/npm-registry-couchapp — pull request #173 by samcday (2014-04-23 22:07:04+00:00)
Title: Respect X-Forwarded-Proto header when building tarball URLs.

We have nginx fronting our registry, and SSL termination is done before the request hits Couch. The problem is the tarball urls built by NPM couchapp are hardcoded to `http://`. We do 301 redirects from http -> https at the nginx layer also, but it would be useful to avoid these round trips. So, I made the tarball URL aware of `X-Forwarded-Proto`. Not sure if this is something you're interested in merging. Let me know!