You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/04/23 18:05:21 UTC

git commit: CB-5847 strictSSL is no longer ignored

Repository: cordova-cli
Updated Branches:
  refs/heads/master 02ba107bc -> c7ac042fc


CB-5847 strictSSL is no longer ignored

github: close #163


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/c7ac042f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/c7ac042f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/c7ac042f

Branch: refs/heads/master
Commit: c7ac042fc89bc41e5df71465983b435c20319755
Parents: 02ba107
Author: lbunschoten <le...@leonbunschoten.nl>
Authored: Fri Apr 11 09:57:01 2014 +0200
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Wed Apr 23 12:05:05 2014 -0400

----------------------------------------------------------------------
 src/lazy_load.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/c7ac042f/src/lazy_load.js
----------------------------------------------------------------------
diff --git a/src/lazy_load.js b/src/lazy_load.js
index 1b8df00..bd6cf77 100644
--- a/src/lazy_load.js
+++ b/src/lazy_load.js
@@ -79,6 +79,7 @@ module.exports = {
                 } else if (uri.protocol == 'http:') {
                     proxy = conf.get('proxy');
                 }
+                var strictSSL = conf.get('strict-ssl');
 
                 // Create a tmp dir. Using /tmp is a problem because it's often on a different partition and sehll.mv()
                 // fails in this case with "EXDEV, cross-device link not permitted".
@@ -92,6 +93,9 @@ module.exports = {
                 if (proxy) {
                     request_options.proxy = proxy;
                 }
+                if (typeof strictSSL == 'boolean') {
+                    request_options.strictSSL = strictSSL;
+                }
                 events.emit('verbose', 'Requesting ' + JSON.stringify(request_options) + '...');
                 events.emit('log', 'Downloading ' + id + ' library for ' + platform + '...');
                 var req = request.get(request_options, function(err, res, body) {