summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGabriel Vasile <gabriel.vasile@email.com>2021-11-27 13:12:43 +0200
committerGitHub <noreply@github.com>2021-11-27 19:12:43 +0800
commit2e8fc5b034d7a2ceb22f264193a157230b48365a (patch)
tree7d7512cc7390ed105ee701d0f95106c8534941d8 /services
parent789d251ae4223fb3fe6c42333cb6731d8ebde05e (diff)
downloadgitea-2e8fc5b034d7a2ceb22f264193a157230b48365a.tar.gz
gitea-2e8fc5b034d7a2ceb22f264193a157230b48365a.zip
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.
Diffstat (limited to 'services')
0 files changed, 0 insertions, 0 deletions