Skip SSL certificate validation on request
This commit is contained in:
parent
26de140a3f
commit
407b7204bd
|
@ -2,6 +2,7 @@ const { program } = require('commander')
|
||||||
const helper = require('./helper')
|
const helper = require('./helper')
|
||||||
const axios = require('axios')
|
const axios = require('axios')
|
||||||
const ProgressBar = require('progress')
|
const ProgressBar = require('progress')
|
||||||
|
const https = require('https')
|
||||||
|
|
||||||
program
|
program
|
||||||
.version('1.0.0', '-v, --version')
|
.version('1.0.0', '-v, --version')
|
||||||
|
@ -19,7 +20,10 @@ const config = program.opts()
|
||||||
|
|
||||||
const instance = axios.create({
|
const instance = axios.create({
|
||||||
timeout: config.timeout,
|
timeout: config.timeout,
|
||||||
maxContentLength: 5000
|
maxContentLength: 5000,
|
||||||
|
httpsAgent: new https.Agent({
|
||||||
|
rejectUnauthorized: false
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
let globalBuffer = []
|
let globalBuffer = []
|
||||||
|
|
Loading…
Reference in New Issue