소스 검색

Merge commit '6265c4f94e201909eec2c819bc3551a9e351b617' into local

yazid138 2 달 전
부모
커밋
ce6e217ced
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      utils/axios.js

+ 0 - 4
utils/axios.js

@@ -43,9 +43,6 @@ exports.get = async (url, token = null) => {
  */
 exports.post = async (url, data, token= null, config = {}) => {
   let response
-  const agent = new https.Agent({
-    rejectUnauthorized: false,
-  })
   if (coba.decrypt(process.env.CXQSB) === PRODUCTION && token) {
     response = await axios.post(url, data,{
       headers: {
@@ -53,7 +50,6 @@ exports.post = async (url, data, token= null, config = {}) => {
         Accept: 'application/json',
         ...config
       },
-      httpsAgent: agent
     })
   } else {
     let token = process.env.XNX1Q