fix mp4 in chromium

This commit is contained in:
Vitaliy 2018-11-09 00:11:02 +02:00
parent dae992d4a9
commit cf87750009

View File

@ -233,7 +233,7 @@ func (i *File) GetFileType(checkContent bool) error {
mimetype = http.DetectContentType(buffer[:n])
}
if strings.HasPrefix(mimetype, "video") {
if strings.HasPrefix(mimetype, "video") || strings.HasSuffix(mimetype, "octet-stream") {
i.Type = "video"
return nil
}