fix mp4 in chromium
This commit is contained in:
parent
dae992d4a9
commit
cf87750009
@ -233,7 +233,7 @@ func (i *File) GetFileType(checkContent bool) error {
|
|||||||
mimetype = http.DetectContentType(buffer[:n])
|
mimetype = http.DetectContentType(buffer[:n])
|
||||||
}
|
}
|
||||||
|
|
||||||
if strings.HasPrefix(mimetype, "video") {
|
if strings.HasPrefix(mimetype, "video") || strings.HasSuffix(mimetype, "octet-stream") {
|
||||||
i.Type = "video"
|
i.Type = "video"
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user