summaryrefslogtreecommitdiff
path: root/deps/npm/lib/utils/fetch.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/lib/utils/fetch.js')
-rw-r--r--deps/npm/lib/utils/fetch.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/npm/lib/utils/fetch.js b/deps/npm/lib/utils/fetch.js
index 0ece53cab..bc1c095cd 100644
--- a/deps/npm/lib/utils/fetch.js
+++ b/deps/npm/lib/utils/fetch.js
@@ -59,6 +59,7 @@ function makeRequest (remote, fstr, headers) {
, proxy: proxy
, strictSSL: npm.config.get("strict-ssl")
, ca: remote.host === regHost ? npm.config.get("ca") : undefined
+ , headers: { "user-agent": npm.config.get("user-agent") }
, onResponse: onResponse }).pipe(fstr)
function onResponse (er, res) {
if (er) return fstr.emit("error", er)