mirror of
https://github.com/vbatts/imgsrv.git
synced 2025-01-04 19:47:08 +00:00
types: override webm as a video
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
553f990c5d
commit
4a23b6bac1
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ func (f *File) IsImage() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *File) IsVideo() bool {
|
func (f *File) IsVideo() bool {
|
||||||
|
if strings.HasSuffix(f.Filename, ".webm") {
|
||||||
|
return true
|
||||||
|
}
|
||||||
return strings.HasPrefix(f.ContentType(), "video")
|
return strings.HasPrefix(f.ContentType(), "video")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue