@nka212bg/backend-utils 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/misc.js +2 -4
- package/package.json +1 -1
package/misc.js
CHANGED
|
@@ -417,12 +417,10 @@ exports.urlMetadata = async ({ url }) => {
|
|
|
417
417
|
|
|
418
418
|
let fetchRes = await fetch(tempUrl.href, {
|
|
419
419
|
headers: {
|
|
420
|
-
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64
|
|
421
|
-
Accept: "
|
|
420
|
+
"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:134.0) Gecko/20100101 Firefox/134.0 bot/0.1",
|
|
421
|
+
Accept: "*/*",
|
|
422
422
|
"Accept-Language": "en-US,en;q=0.5",
|
|
423
423
|
"Accept-Encoding": "gzip, deflate, br",
|
|
424
|
-
Path: tempUrl.pathname,
|
|
425
|
-
Authority: tempUrl.hostname,
|
|
426
424
|
},
|
|
427
425
|
});
|
|
428
426
|
|