1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-30 09:41:11 -05:00
forgejo/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