1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/modules/upload
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
..
upload_test.go Attachments: Add extension support, allow all types for releases (#12465) 2020-10-05 01:49:33 -04:00
upload.go Replace regex usage for MIME parsing (#17831) 2021-11-27 19:12:43 +08:00