server/func/mime: support ftypM4V file signature
This commit is contained in:
parent
7b54551b8e
commit
545b5828b5
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ def get_mime_type(content: bytes) -> str:
|
|||
if content[0:4] == b"\x1A\x45\xDF\xA3":
|
||||
return "video/webm"
|
||||
|
||||
if content[4:12] in (b"ftypisom", b"ftypiso5", b"ftypmp42"):
|
||||
if content[4:12] in (b"ftypisom", b"ftypiso5", b"ftypmp42", b"ftypM4V "):
|
||||
return "video/mp4"
|
||||
|
||||
return "application/octet-stream"
|
||||
|
|
Loading…
Reference in a new issue