Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2017-05-16 02:24:00 +0300
committerRebecca Turner <me@re-becca.org>2017-05-26 04:55:21 +0300
commit9f36587bd99ec604d7a1de7ef285cedb63e4892c (patch)
treec90e69e6ec621111e788a54d8f969ced3f1180a7 /lib
parentc5151465451e24ed70f0dc5394d300fe8d86b878 (diff)
pacote: pass the user-agent through
Diffstat (limited to 'lib')
-rw-r--r--lib/config/pacote.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/config/pacote.js b/lib/config/pacote.js
index e1f20c6eb..a0a83d315 100644
--- a/lib/config/pacote.js
+++ b/lib/config/pacote.js
@@ -39,7 +39,8 @@ function pacoteOpts (moreOpts) {
maxTimeout: npm.config.get('fetch-retry-maxtimeout')
},
scope: npm.config.get('scope'),
- strictSSL: npm.config.get('strict-ssl')
+ strictSSL: npm.config.get('strict-ssl'),
+ userAgent: npm.config.get('user-agent')
}
if (ownerStats.uid || ownerStats.gid) {