Speed up nsfw url check

This commit is contained in:
Dragon Fire
2021-04-04 12:11:31 -04:00
parent 27ab3dc607
commit 306a41ac12
+1 -1
View File
@@ -220,7 +220,7 @@ module.exports = class Util {
if (siteList.includes(`${domain}.${topLevelDomains.join('.')}`)) return true;
let redirectURL;
try {
const { url: redirected } = await request.get(uri);
const { url: redirected } = await request.get(uri, { noResultData: true });
redirectURL = redirected;
} catch {
return null;