Allow plus sign in MIME types

For example, image/svg+xml
This commit is contained in:
Marius 2018-03-03 21:56:46 +01:00
parent 0dafbddcc9
commit dbd0a957b5
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ var (
reExtractFileID = regexp.MustCompile(`([^/]+)\/?$`)
reForwardedHost = regexp.MustCompile(`host=([^,]+)`)
reForwardedProto = regexp.MustCompile(`proto=(https?)`)
reMimeType = regexp.MustCompile(`^[a-z]+\/[a-z\-]+$`)
reMimeType = regexp.MustCompile(`^[a-z]+\/[a-z\-\+]+$`)
)
// HTTPError represents an error with an additional status code attached