gitea/modules/typesniffer
Giteabot 4bdb8dd9cc
Detect ogg mime-type as audio or video (#26494) (#26505)
Backport #26494 by @wxiaoguang

"ogg" is just a "container" format for audio and video.

Golang's `DetectContentType` only reports "application/ogg" for
potential ogg files.

Actually it could do more "guess" to see whether it is a audio file or a
video file.

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-08-15 11:15:26 +08:00
..
typesniffer_test.go Detect ogg mime-type as audio or video (#26494) (#26505) 2023-08-15 11:15:26 +08:00
typesniffer.go Detect ogg mime-type as audio or video (#26494) (#26505) 2023-08-15 11:15:26 +08:00