0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-27 08:44:30 +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.go Detect ogg mime-type as audio or video (#26494) 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