Videos: Set explicit content type header for MPEG-4 AVC #603
This commit is contained in:
parent
473566f404
commit
7bae7edf50
|
@ -87,6 +87,8 @@ func GetVideo(router *gin.RouterGroup) {
|
|||
log.Debugf("video: transcoding completed in %s", time.Since(start))
|
||||
}
|
||||
|
||||
c.Header("Content-Type", `video/mp4; codecs="avc1"`)
|
||||
|
||||
if c.Query("download") != "" {
|
||||
c.FileAttachment(fileName, f.ShareFileName())
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue