bruh
This commit is contained in:
parent
48a079858a
commit
87d41408c6
File diff suppressed because one or more lines are too long
6
index.js
6
index.js
|
@ -42,11 +42,11 @@ async function handler(type, request) {
|
|||
} else {
|
||||
format = format.toLowerCase()
|
||||
if (format_string_to_num[format] === undefined) {
|
||||
html = Object.values(format_string_to_num).indexOf(format)
|
||||
if (html === -1) {
|
||||
index = Object.values(format_string_to_num).indexOf(format)
|
||||
if (index === -1) {
|
||||
return new Response('Invalid format', { status: 400, headers: { 'content-type': 'text/plain' } })
|
||||
}
|
||||
format = Object.keys(format_string_to_num)[html]
|
||||
format = Object.keys(format_string_to_num)[index]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue