From 51a2adfbbb043068d880f31cff7a21b39ee024fb Mon Sep 17 00:00:00 2001 From: Yohann Leon Date: Fri, 17 Apr 2026 03:17:55 +0900 Subject: [PATCH] Disable chunked request by forcing reactor to set Content-Length --- .../kotlin/org/gotson/komga/infrastructure/kobo/KoboProxy.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komga/src/main/kotlin/org/gotson/komga/infrastructure/kobo/KoboProxy.kt b/komga/src/main/kotlin/org/gotson/komga/infrastructure/kobo/KoboProxy.kt index 2df061ec..14f50923 100644 --- a/komga/src/main/kotlin/org/gotson/komga/infrastructure/kobo/KoboProxy.kt +++ b/komga/src/main/kotlin/org/gotson/komga/infrastructure/kobo/KoboProxy.kt @@ -113,7 +113,7 @@ class KoboProxy( } } logger.debug { "Headers out: $headersOut" } - }.apply { if (body != null) body(body) } + }.apply { if (body != null) body(objectMapper.writeValueAsBytes(body)) } .retrieve() .onStatus(HttpStatusCode::isError) { _, response -> logger.debug { "Kobo response: ${response.statusCode}: ${response.body.bufferedReader().use { it.readText() }}" }