Skip to content

Commit

Permalink
Add workaround for request
Browse files Browse the repository at this point in the history
Fixes:
    Error: certificate has expired workaround for request
  • Loading branch information
EXL committed Nov 26, 2019
1 parent 1e559c9 commit 59ae4c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DigestBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ var TelegramBot = require('node-telegram-bot-api');
var FileSystem = require('fs');
var Http = require('http');
var Https = require('https');
var Request = require('request');
// Error: certificate has expired workaround for request
// See: https://stackoverflow.com/a/50494028
var Request = require('request').defaults({ rejectUnauthorized: false });
var Exec = require('child_process').exec;
var ParseXMLString = require('xml2js').parseString;

Expand Down

0 comments on commit 59ae4c5

Please sign in to comment.