Disable chunked request by forcing reactor to set Content-Length

This commit is contained in:
Yohann Leon 2026-04-17 03:17:55 +09:00
parent 8fd9da2264
commit 51a2adfbbb
No known key found for this signature in database

View file

@ -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() }}" }