This commit is contained in:
2024-05-18 12:38:37 +02:00
parent 2a965f375f
commit 399816afa1
7 changed files with 63 additions and 11 deletions

View File

@ -40,9 +40,9 @@ function _get_fmt(): string {
$type = sizeof($fmts) > 0 ? array_key_first($fmts) : null;
if (str_contains($type, '/json')) {
return 'json';
} else if ($type === 'text/html') {
return 'html';
} else {
} else if ($type === 'text/plain') {
return 'text';
} else {
return 'html';
}
}