diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/network/DefaultHttpClient.kt b/src/commonMain/kotlin/com/zup/nimbus/core/network/DefaultHttpClient.kt index 288c250..118ba23 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/network/DefaultHttpClient.kt +++ b/src/commonMain/kotlin/com/zup/nimbus/core/network/DefaultHttpClient.kt @@ -20,7 +20,7 @@ class DefaultHttpClient(engine: HttpClientEngine? = null): com.zup.nimbus.core.n val response = doRequest(request) return ServerDrivenResponse( response.status.value, - response.bodyAsText(), + runCatching { response.bodyAsText() }.getOrDefault(""), buildResponseHeaders(response.headers), response.body() )