fix: ignore case when checking file type
All checks were successful
gitea-sync/silk/pipeline/head This commit looks good

This commit is contained in:
DanyLE 2023-10-24 16:34:55 +02:00
parent adb81580a3
commit eeea893d92

View File

@ -37,10 +37,10 @@ setmetatable(default_mimes, {
end
})
function std.mime(ext)
return default_mimes[ext]
return default_mimes[ext:lower()]
end
function std.extra_mime(name)
local ext = utils.ext(name)
local ext = utils.ext(name):lower()
local mpath = __ROOT__ .. "/" .. "mimes.json"
if WWW_ROOT and not ulib.exists(mpath) then
LOG_DEBUG("No extra mimes found in %s", mpath)