Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/registry-client-v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ function login(opts, cb) {
userAgent: opts.userAgent || common.DEFAULT_USERAGENT,
agent: opts.agent,
proxy: opts.proxy,
noProxy: opts.noProxy,
headers: opts.headers,
rejectUnauthorized: !opts.insecure
});
Expand Down Expand Up @@ -330,6 +331,7 @@ function RegistryClientV1(opts) {
log: this.log,
agent: opts.agent,
proxy: opts.proxy,
noProxy: opts.noProxy,
rejectUnauthorized: !this.insecure,
userAgent: opts.userAgent || common.DEFAULT_USERAGENT
};
Expand Down
6 changes: 5 additions & 1 deletion lib/registry-client-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ function _getToken(opts, cb) {
log: log,
agent: opts.agent,
proxy: opts.proxy,
noProxy: opts.noProxy,
rejectUnauthorized: !opts.insecure,
userAgent: opts.userAgent || common.DEFAULT_USERAGENT
});
Expand Down Expand Up @@ -673,7 +674,8 @@ function ping(opts, cb) {
userAgent: opts.userAgent || common.DEFAULT_USERAGENT,
rejectUnauthorized: rejectUnauthorized,
agent: opts.agent,
proxy: opts.proxy
proxy: opts.proxy,
noProxy: opts.noProxy
});

var headers = {};
Expand Down Expand Up @@ -875,6 +877,7 @@ function login(opts, cb) {
log: log,
agent: opts.agent,
proxy: opts.proxy,
noProxy: opts.noProxy,
userAgent: opts.userAgent,
insecure: opts.insecure
}, function (err, token) {
Expand Down Expand Up @@ -1037,6 +1040,7 @@ function RegistryClientV2(opts) {
log: this.log,
agent: opts.agent,
proxy: opts.proxy,
noProxy: opts.noProxy,
rejectUnauthorized: !this.insecure,
userAgent: opts.userAgent || common.DEFAULT_USERAGENT
};
Expand Down