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 2017/11/11 18:07:04 UTC
httpcomponents-core git commit: Fixed incorrect handling of response
messages without a message content entity
Repository: httpcomponents-core
Updated Branches:
refs/heads/master d3eee8a7e -> a0a45e1e5
Fixed incorrect handling of response messages without a message content entity
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/a0a45e1e
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/a0a45e1e
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/a0a45e1e
Branch: refs/heads/master
Commit: a0a45e1e5598e99979d8003fca2b632dfdc35da9
Parents: d3eee8a
Author: Oleg Kalnichevski <ol...@apache.org>
Authored: Sat Nov 11 19:04:35 2017 +0100
Committer: Oleg Kalnichevski <ol...@apache.org>
Committed: Sat Nov 11 19:04:35 2017 +0100
----------------------------------------------------------------------
.../hc/core5/http/nio/support/AbstractAsyncResponseConsumer.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/a0a45e1e/httpcore5/src/main/java/org/apache/hc/core5/http/nio/support/AbstractAsyncResponseConsumer.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/http/nio/support/AbstractAsyncResponseConsumer.java b/httpcore5/src/main/java/org/apache/hc/core5/http/nio/support/AbstractAsyncResponseConsumer.java
index 02c5662..c77ef51 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/http/nio/support/AbstractAsyncResponseConsumer.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/http/nio/support/AbstractAsyncResponseConsumer.java
@@ -87,7 +87,8 @@ public abstract class AbstractAsyncResponseConsumer<T, E> implements AsyncRespon
});
} else {
- resultCallback.completed(buildResult(response, null, null));
+ result = buildResult(response, null, null);
+ resultCallback.completed(result);
entityConsumer.releaseResources();
}