Spaces:
Running
Running
Update index.js
Browse files
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:
|
101 |
headers: {
|
102 |
-
'Content-Type': 'application
|
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 |
}))
|