Skip to content

Commit

Permalink
Revert "Don't cache responses with 0 content length (#3743)" (#3763)
Browse files Browse the repository at this point in the history
This reverts commit d8c8e2d.
  • Loading branch information
mueller-ma authored Jul 18, 2024
1 parent eefeb77 commit 2af24c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 -> {
Expand Down

0 comments on commit 2af24c0

Please sign in to comment.