1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-21 23:24:29 +00:00
Gabriel Vasile 2e8fc5b034
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.
2021-11-27 19:12:43 +08:00
..
2021-06-07 07:27:09 +02:00
2020-10-02 23:37:53 -04:00
2021-11-19 18:46:47 +08:00
2021-10-18 21:12:26 +01:00
2020-04-05 07:20:50 +01:00
2021-10-13 22:50:23 -04:00