akkun3704 commited on
Commit
082cfcb
·
1 Parent(s): 05d4416

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -2
index.js CHANGED
@@ -97,9 +97,9 @@ app.get('/yt/convert', async (req, res) => {
97
 
98
  const fetchPost = (url, body) => (fetch(url, {
99
  method: 'POST',
100
- body: new URLSearchParams(Object.entries(body)),
101
  headers: {
102
- 'Content-Type': 'application/x-www-form-urlencoded',
103
  'Referer': 'https://y2mate.is/'
104
  }
105
  }))
 
97
 
98
  const fetchPost = (url, body) => (fetch(url, {
99
  method: 'POST',
100
+ body: JSON.stringify(body),
101
  headers: {
102
+ 'Content-Type': 'application/*',
103
  'Referer': 'https://y2mate.is/'
104
  }
105
  }))