fixed filesize check
This commit is contained in:
parent
88447c3593
commit
90f3d6bf4e
File diff suppressed because one or more lines are too long
2
index.js
2
index.js
|
@ -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' } })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue