process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ale 2024-09-23 22:56:58 +02:00
parent dee27f79d4
commit 1811e4ed55

View File

@ -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,