diff --git a/server/src/main/kotlin/suwayomi/tachidesk/impl/util/storage/CachedImageResponse.kt b/server/src/main/kotlin/suwayomi/tachidesk/impl/util/storage/CachedImageResponse.kt index 28bc2d6..2c82a5c 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/impl/util/storage/CachedImageResponse.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/impl/util/storage/CachedImageResponse.kt @@ -32,7 +32,7 @@ object CachedImageResponse { val cachedFile = findFileNameStartingWith(saveDir, fileName) val filePath = "$saveDir/$fileName" if (cachedFile != null) { - val fileType = cachedFile.substringAfter(filePath) + val fileType = cachedFile.substringAfter("$filePath.") return Pair( pathToInputStream(cachedFile), "image/$fileType"