fixed filesize check

This commit is contained in:
uh wot 2021-08-24 17:36:22 +02:00
parent 88447c3593
commit 90f3d6bf4e
Signed by: uhwot
GPG Key ID: CB2454984587B781
2 changed files with 2 additions and 2 deletions

2
dist/worker.js vendored

File diff suppressed because one or more lines are too long

View File

@ -205,7 +205,7 @@ function track_url(json, format, url_func) {
format = 'misc' format = 'misc'
} }
if (json['filesize_' + format] === '0') { if (json['filesize_' + format] == false) {
return new Response('Format unavailable', { status: 403, headers: { 'content-type': 'text/plain' } }) return new Response('Format unavailable', { status: 403, headers: { 'content-type': 'text/plain' } })
} }