Permalink
Browse files

[fix] Default `rejectUnauthorized` to `false`

  • Loading branch information...
1 parent 7f754c5 commit eeff961326d53e9a8a9cfdf1c29a0c94f73f8608 @mmalecki mmalecki committed Mar 29, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/jitsu.js
View
@@ -258,6 +258,11 @@ jitsu.setup = function (callback) {
return callback();
}
+ var rejectUnauthorized = jitsu.config.get('rejectUnauthorized');
+ if (typeof rejectUnauthorized === 'undefined') {
+ jitsu.config.set('rejectUnauthorized', false);
+ }
+
['Users', 'Apps', 'Snapshots', 'Databases', 'Logs', 'Tokens'].forEach(function (key) {
var k = key.toLowerCase();
jitsu[k] = new jitsu.api[key](jitsu.config);

0 comments on commit eeff961

Please sign in to comment.