Videos: Set explicit content type header for MPEG-4 AVC #603

This commit is contained in:
Michael Mayer 2020-12-12 17:53:19 +01:00
parent 473566f404
commit 7bae7edf50

View file

@ -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 {