diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2016-03-17 09:17:33 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2016-03-18 02:35:55 +0300 |
commit | f67ecad59e99a03e5aad8e93cd1a086ae087cb29 (patch) | |
tree | afbc02e25fa369e7e07a7069f4381891c98cb46c /lib/cache.js | |
parent | ffa428a4eee482aa620819bc8df994a76fad7b0c (diff) |
config: only send token to registry hosts
Fixes: #8380
Credit: @othiym23
Reviewed-By: @zkat
Diffstat (limited to 'lib/cache.js')
-rw-r--r-- | lib/cache.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cache.js b/lib/cache.js index 057972c03..757ba6e79 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -285,7 +285,7 @@ function add (args, where, cb) { break case 'remote': // get auth, if possible - mapToRegistry(spec, npm.config, function (err, uri, auth) { + mapToRegistry(p.raw, npm.config, function (err, uri, auth) { if (err) return cb(err) addRemoteTarball(p.spec, { name: p.name }, null, auth, cb) |