mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-10-26 21:43:41 +08:00
MIME types can have multiple optional parameters, eg:
video/webm; codecs="w/e codec"; charset="binary"
This commit replaces the usage of regex for getting the "type/subtype"
with mime.ParseMediaType.