mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
IJPL-159864, IJPL-196620: add image/webp mime type support in Vision resource handlers
(cherry picked from commit 5c6af363eb258a26e3404b7f7a56fd9f898678b3) IJ-CR-169287 GitOrigin-RevId: 6f25219a73c2da5d47a4e36ca5564caafaee7608
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6a2a521c5f
commit
9c89077f1b
@@ -45,6 +45,7 @@ private fun getMIMEType(extension: String): String {
|
|||||||
"svg" -> "image/svg+xml"
|
"svg" -> "image/svg+xml"
|
||||||
"mp4" -> "video/mp4"
|
"mp4" -> "video/mp4"
|
||||||
"webm" -> "video/webm"
|
"webm" -> "video/webm"
|
||||||
|
"webp" -> "image/webp"
|
||||||
else -> "".also { logger.warn("Unknown file extension: '$extension' for MIME type. Falling back to '$it'.") }
|
else -> "".also { logger.warn("Unknown file extension: '$extension' for MIME type. Falling back to '$it'.") }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user