aumentar timeout

This commit is contained in:
Cat /dev/Nulo 2023-12-22 14:41:26 -03:00
parent feb197f074
commit 2f8dab4614

View file

@ -8,6 +8,7 @@ export async function getHtml(url: string) {
"Accept-Encoding": "gzip, deflate, br", "Accept-Encoding": "gzip, deflate, br",
}, },
throwOnError: true, throwOnError: true,
bodyTimeout: 10 * 60 * 1000,
}); });
let output: Buffer; let output: Buffer;
switch (res.headers["content-encoding"]) { switch (res.headers["content-encoding"]) {