Allow plus sign in MIME types
For example, image/svg+xml
@@ -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
