Use 'application/txt' when sending text files
This commit is contained in:
parent
40a77118bf
commit
1e67cd0fdf
3 changed files with 15 additions and 2 deletions
|
|
@ -43,3 +43,7 @@ fun String.isPdfMimeType(): Boolean {
|
|||
fun String.isZipMimeType(): Boolean {
|
||||
return lowercase().endsWith("zip")
|
||||
}
|
||||
|
||||
fun String.isPlainTextMimeType(): Boolean {
|
||||
return lowercase().startsWith("text")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue