1
0
Fork 0
mirror of https://github.com/vbatts/imgsrv.git synced 2025-01-02 18:47:08 +00:00

types: override webm as a video

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2017-08-08 16:10:27 -04:00
parent 553f990c5d
commit 4a23b6bac1
Signed by: vbatts
GPG key ID: 10937E57733F1362

View file

@ -33,6 +33,9 @@ func (f *File) IsImage() bool {
}
func (f *File) IsVideo() bool {
if strings.HasSuffix(f.Filename, ".webm") {
return true
}
return strings.HasPrefix(f.ContentType(), "video")
}