server: Fix media mime match bug

This commit is contained in:
Koushik Dutta
2022-03-06 11:31:37 -08:00
parent 74d358542f
commit 3b7e248809

View File

@@ -16,7 +16,7 @@ import rimraf from "rimraf";
function typeMatches(target: string, candidate: string): boolean {
// candidate will accept anything
if (candidate === '*')
if (candidate === '*' || target === '*')
return true;
return target === candidate;
}