Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
Use the supplied CA from the configs
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 10, 2011
1 parent ee3ec95 commit 8ac411d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils/fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@ function makeRequest (remote, fstr, headers) {

request({ url: remote
, proxy: proxy
, ca: npm.config.get("ca")
, strictSSL: npm.config.get("strict-ssl") }).pipe(fstr)
}
1 change: 1 addition & 0 deletions lib/utils/npm-registry-client/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function regRequest (method, where, what, etag, nofollow, cb_) {
function makeRequest (method, remote, where, what, etag, nofollow, cb) {
var opts = { url: remote
, method: method
, ca: npm.config.get("ca")
, strictSSL: npm.config.get("strict-ssl") }
, headers = opts.headers = {}
if (etag) {
Expand Down

0 comments on commit 8ac411d

Please sign in to comment.