mirror of https://github.com/go-gitea/gitea
Replace regex usage for MIME parsing (#17831)
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.pull/17830/head^2
parent
789d251ae4
commit
2e8fc5b034
Loading…
Reference in new issue