Nexchan commited on
Commit
b7f8e41
1 Parent(s): 97de61d

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -1
index.js CHANGED
@@ -57,7 +57,8 @@ app.all('/axios/:method/*', async (req, res) => {
57
  headers: {
58
  ...req.headers, // Menyalin semua header dari permintaan asli
59
  'User-Agent': req.headers['user-agent'] || 'Mozilla/5.0 (Linux; Android 12; SM-S908B Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/99.0.4844.58 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/357.0.0.23.115;] WhatsApp/1.2.3', // Menambahkan custom user-agent
60
- }
 
61
  };
62
 
63
  if (responseType) {
 
57
  headers: {
58
  ...req.headers, // Menyalin semua header dari permintaan asli
59
  'User-Agent': req.headers['user-agent'] || 'Mozilla/5.0 (Linux; Android 12; SM-S908B Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/99.0.4844.58 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/357.0.0.23.115;] WhatsApp/1.2.3', // Menambahkan custom user-agent
60
+ },
61
+ httpsAgent: agent
62
  };
63
 
64
  if (responseType) {