Commit 69f8796510ee582a7db1790b2208b3f0d35d7ff4

Authored by Adhidarma Hadiwinoto
1 parent 0b01e7bfd3
Exists in master

try to ignore invalid ssl

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -5,6 +5,8 @@ var config = iniparser.parseSync(process.cwd() +'/config.ini');
5 5 var base_url = 'http://localhost:' + config.globals.admin_port
6 6 var apikey = config.globals.apikey;
7 7  
  8 +process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
  9 +
8 10 function doRequest(url) {
9 11 request(url, function(err, response, body) {
10 12 if (err) {