From 407b7204bdf4f9bfb2207a57e48b0d45003bd1ac Mon Sep 17 00:00:00 2001 From: freearhey Date: Tue, 19 Jan 2021 15:53:22 +0300 Subject: [PATCH] Skip SSL certificate validation on request --- scripts/format.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/format.js b/scripts/format.js index b686423df..f888868e3 100644 --- a/scripts/format.js +++ b/scripts/format.js @@ -2,6 +2,7 @@ const { program } = require('commander') const helper = require('./helper') const axios = require('axios') const ProgressBar = require('progress') +const https = require('https') program .version('1.0.0', '-v, --version') @@ -19,7 +20,10 @@ const config = program.opts() const instance = axios.create({ timeout: config.timeout, - maxContentLength: 5000 + maxContentLength: 5000, + httpsAgent: new https.Agent({ + rejectUnauthorized: false + }) }) let globalBuffer = []