mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-24 04:36:38 +00:00
set mjpeg content-type
This commit is contained in:
parent
36409a4ac0
commit
a1966f723d
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue