From cd6c30b0de7c72bcd3b794228c0b343b27d006cd Mon Sep 17 00:00:00 2001 From: dkhjmu Date: Mon, 3 Apr 2017 23:54:09 +0900 Subject: [PATCH] FIX bug, Add strictSSL(Boolean) option --- lib/install.js | 4 ++++ lib/node-gyp.js | 1 + 2 files changed, 5 insertions(+) diff --git a/lib/install.js b/lib/install.js index fa2e1c5430..2265e0d9ac 100644 --- a/lib/install.js +++ b/lib/install.js @@ -432,6 +432,10 @@ function download (gyp, env, url) { 'User-Agent': 'node-gyp v' + gyp.version + ' (node ' + process.version + ')' } } + + if (gyp.opts.strictSSL!=undefined){ + requestOpts.strictSSL = gyp.opts.strictSSL + } var cafile = gyp.opts.cafile if (cafile) { diff --git a/lib/node-gyp.js b/lib/node-gyp.js index a841161e32..43f3cbeaeb 100644 --- a/lib/node-gyp.js +++ b/lib/node-gyp.js @@ -89,6 +89,7 @@ proto.configDefs = { , 'tarball': String // 'install' , jobs: String // 'build' , thin: String // 'configure' + , strictSSL: Boolean // 'strictSSL' } /**