This commit is contained in:
Henry Jameson 2026-08-04 00:56:04 +03:00
commit 2e039561c9
7 changed files with 18 additions and 26 deletions

View file

@ -109,7 +109,9 @@ export const promisedRequest = async ({
.get('content-type')
.split(';')
.map((x) => x.toLowerCase().trim())
const contentLength = Number.parseInt(response.headers.get('content-length'))
const contentLength = Number.parseInt(
response.headers.get('content-length'),
)
if (contentLength === 0) return null
switch (contentType) {