0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-03-03 02:05:51 -05:00
forgejo/modules
Giteabot 622ec5c79f
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>
(cherry picked from commit 4bdb8dd9cc)
2023-08-21 07:26:43 +02:00
..
actions
activitypub
analyze
assetfs Skip unuseful error message in dev mode when watching local filesystem (#25919) (#25927) 2023-07-24 07:58:56 +02:00
auth [SECURITY] default to pbkdf2 with 320,000 iterations 2023-07-16 23:44:22 +02:00
avatar
base
cache
charset
container
context Introduce ctx.PathParamRaw to avoid incorrect unescaping (#26392) (#26405) 2023-08-21 07:22:18 +02:00
csv
doctor
emoji
eventsource
generate
git Close stdout correctly for "git blame" (#26470) (#26473) 2023-08-21 07:22:19 +02:00
gitgraph
graceful
hcaptcha
highlight
hostmatcher
html
httpcache [BRANDING] add X-Forgejo-* headers 2023-07-17 00:25:55 +02:00
httplib
indexer
issue/template
json
label
lfs
log Use stderr as fallback if the log file can't be opened (#26074) (#26083) 2023-07-26 13:49:15 +02:00
markup [GITEA] Fix media description render for orgmode 2023-08-12 16:04:33 +02:00
mcaptcha
metrics
migration
mirror
nosql
notification
options
packages Prevent newline errors with Debian packages (#26332) (#26342) 2023-08-21 07:22:16 +02:00
paginator
pprof
private [CLI] implement forgejo-cli actions register 2023-07-16 23:21:45 +02:00
process
proxy
proxyprotocol
public
queue Calculate MAX_WORKERS default value by CPU number (#26177) (#26183) 2023-07-30 07:46:18 +02:00
recaptcha
references
regexplru
repository
secret
session
setting Fix storage path logic especially for relative paths (#26441) (#26481) 2023-08-21 07:22:19 +02:00
sitemap
ssh Fix admin queue page title and fix CI failures (#26409) (#26421) 2023-08-21 07:22:18 +02:00
storage Check first if minio bucket exists before trying to create it (#26420) (#26465) 2023-08-21 07:22:19 +02:00
structs [BRANDING] define the forgejo webhook type 2023-08-21 07:22:16 +02:00
svg
sync
system
templates
test [TESTS] MockVariable temporarily replaces a global value 2023-08-21 07:22:17 +02:00
testlogger
timeutil
translation
turnstile
typesniffer Detect ogg mime-type as audio or video (#26494) (#26505) 2023-08-21 07:26:43 +02:00
updatechecker [PRIVACY] Add a DNS method to fetch new updates 2023-07-17 00:24:23 +02:00
upload
uri
user
util
validation
web Fix incorrect router logger (#26137) (#26143) 2023-07-26 13:49:15 +02:00
webhook [BRANDING] define the forgejo webhook type 2023-08-21 07:22:16 +02:00