set mjpeg content-type

This commit is contained in:
kim 2024-11-01 21:38:51 +00:00
parent 36409a4ac0
commit a1966f723d

View file

@ -330,7 +330,7 @@ func (res *result) GetFileType() (gtsmodel.FileType, string, string) {
"video/mpeg", "mpeg" "video/mpeg", "mpeg"
case "mjpeg": case "mjpeg":
return gtsmodel.FileTypeVideo, return gtsmodel.FileTypeVideo,
"", "mjpeg" "video/x-motion-jpeg", "mjpeg"
case "mov,mp4,m4a,3gp,3g2,mj2": case "mov,mp4,m4a,3gp,3g2,mj2":
switch { switch {
case len(res.video) > 0: case len(res.video) > 0: