Fix
Browse files- lib/scrapper.js +1 -1
lib/scrapper.js
CHANGED
@@ -23,7 +23,7 @@ const AuthorOriginal = function (response) {
|
|
23 |
const TiktokDownloader = async (url) => {
|
24 |
try {
|
25 |
const urls = `${config.TIKTOK_URL}/api/?url=${url}`;
|
26 |
-
const response = await axios.get(
|
27 |
return response.data;
|
28 |
} catch (error) {
|
29 |
console.error("Error:", e.message);
|
|
|
23 |
const TiktokDownloader = async (url) => {
|
24 |
try {
|
25 |
const urls = `${config.TIKTOK_URL}/api/?url=${url}`;
|
26 |
+
const response = await axios.get(urls, { headers: {'Content-Type': 'application/json'} });
|
27 |
return response.data;
|
28 |
} catch (error) {
|
29 |
console.error("Error:", e.message);
|