diff --git a/mobile/src/main/java/org/openhab/habdroid/util/HttpClient.kt b/mobile/src/main/java/org/openhab/habdroid/util/HttpClient.kt index 3c6bf9dc57..d82ba314ea 100644 --- a/mobile/src/main/java/org/openhab/habdroid/util/HttpClient.kt +++ b/mobile/src/main/java/org/openhab/habdroid/util/HttpClient.kt @@ -206,7 +206,7 @@ class HttpClient(client: OkHttpClient, baseUrl: String?, username: String?, pass HttpException(call.request(), url, response.message, response.code) ) } - body == null || body.contentLength() == 0L -> { + body == null -> { cont.resumeWithException(HttpException(call.request(), url, "Empty body", 500)) } else -> {