Skip to content

Commit

Permalink
Revert "Don't cache responses with 0 content length (#3743)"
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 e72c52e commit ae479a6
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 ae479a6

Please sign in to comment.