process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
dee27f79d4
commit
1811e4ed55
@ -18,6 +18,7 @@ module.exports = async (client, apex, app) => {
|
||||
}
|
||||
},
|
||||
requestPart = async uri => {
|
||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0
|
||||
const ac = new AbortController()
|
||||
try {
|
||||
setTimeout(() => {
|
||||
@ -26,7 +27,6 @@ module.exports = async (client, apex, app) => {
|
||||
const response = await fetch(uri, {
|
||||
headers: { 'User-Agent': constant.agent },
|
||||
agent: new https.Agent({
|
||||
rejectUnauthorized: false,
|
||||
keepAlive: false
|
||||
}),
|
||||
signal: ac.signal,
|
||||
|
Loading…
Reference in New Issue
Block a user