mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
Merge
This commit is contained in:
commit
ac5daa7a22
2 changed files with 36 additions and 3 deletions
|
@ -259,7 +259,7 @@ class MultiExchange<T> {
|
|||
|
||||
private boolean bodyIsPresent(Response r) {
|
||||
HttpHeaders headers = r.headers();
|
||||
if (headers.firstValue("Content-length").isPresent())
|
||||
if (headers.firstValueAsLong("Content-length").orElse(0L) != 0L)
|
||||
return true;
|
||||
if (headers.firstValue("Transfer-encoding").isPresent())
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue