Allow more chars for mimetype

This commit is contained in:
Eike Kettner 2020-02-20 00:39:31 +01:00
parent 97305d27ff
commit fbe0c1aec5

View File

@ -27,7 +27,7 @@ object MimeType {
MimeType("image", partFromString(sub).throwLeft)
private[this] val validChars: Set[Char] =
(('A' to 'Z') ++ ('a' to 'z') ++ ('0' to '9') ++ "*-.").toSet
(('A' to 'Z') ++ ('a' to 'z') ++ ('0' to '9') ++ "*-.+").toSet
def parse(str: String): Either[String, MimeType] =
str.indexOf('/') match {