You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2020/11/06 08:42:18 UTC
[httpcomponents-client] branch 5.0.x updated: HTTPCLIENT-2126:
`InternalAbstractHttpAsyncClient` incorrectly handles response messages
with no enclosed entity
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch 5.0.x
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
The following commit(s) were added to refs/heads/5.0.x by this push:
new d421658 HTTPCLIENT-2126: `InternalAbstractHttpAsyncClient` incorrectly handles response messages with no enclosed entity
d421658 is described below
commit d4216587406159653f30f908665d25cbd39e99d6
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Fri Nov 6 09:37:25 2020 +0100
HTTPCLIENT-2126: `InternalAbstractHttpAsyncClient` incorrectly handles response messages with no enclosed entity
---
.../hc/client5/http/impl/async/InternalAbstractHttpAsyncClient.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalAbstractHttpAsyncClient.java b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalAbstractHttpAsyncClient.java
index 20172eb..ca9ffc0 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalAbstractHttpAsyncClient.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/impl/async/InternalAbstractHttpAsyncClient.java
@@ -278,7 +278,7 @@ abstract class InternalAbstractHttpAsyncClient extends AbstractHttpAsyncClientBa
}
});
- return responseConsumer;
+ return entityDetails != null ? responseConsumer : null;
}
@Override