0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-28 01:58:20 +01:00
gitea/modules/typesniffer
wxiaoguang ced34bab1a
Detect ogg mime-type as audio or video (#26494)
"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.
2023-08-15 10:31:25 +08:00
..
typesniffer_test.go Detect ogg mime-type as audio or video (#26494) 2023-08-15 10:31:25 +08:00
typesniffer.go Detect ogg mime-type as audio or video (#26494) 2023-08-15 10:31:25 +08:00