diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/util/OkHttp.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/util/OkHttp.kt index 4d692a8e..259158f7 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/util/OkHttp.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/util/OkHttp.kt @@ -17,8 +17,9 @@ public suspend fun Call.await(): Response = suspendCancellableCoroutine { contin } public val Response.mimeType: String? - get() = header("content-type")?.nullIfEmpty() + get() = header("content-type")?.substringBefore(';')?.trim()?.nullIfEmpty()?.lowercase() +@Deprecated("") public val Response.contentDisposition: String? get() = header("Content-Disposition")