mirror of
https://github.com/koush/scrypted.git
synced 2026-02-18 20:42:40 +00:00
server: Fix media mime match bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user