3 커밋 37dfc10fce ... ce6e217ced

작성자 SHA1 메시지 날짜
  yazid138 ce6e217ced Merge commit '6265c4f94e201909eec2c819bc3551a9e351b617' into local 2 달 전
  yazid138 6265c4f94e Merge commit 'cbf9f53f127b89c23e0018b457abc22861eab83f' 2 달 전
  yazid138 cbf9f53f12 Remove redundant https agent creation in axios post method 2 달 전
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