avoid weird mime types
This commit is contained in:
parent
7f61400674
commit
a0baee54d5
1 changed files with 1 additions and 0 deletions
1
site.js
1
site.js
|
@ -24,6 +24,7 @@ async function urlCollector(url, path, file, useLimit, data2) {
|
|||
let data;
|
||||
try {
|
||||
data = await fetch(url);
|
||||
if (!data.headers.get("content-type").startsWith('text/html')) return urls;
|
||||
data = await data.text();
|
||||
console.log(`User ${url} was fetched`);
|
||||
} catch (err) {
|
||||
|
|
Loading…
Reference in a new issue