hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject httpcomponents-core git commit: Fixed incorrect handling of response messages without a message content entity
Date Sat, 11 Nov 2017 18:07:04 GMT
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 <olegk@apache.org>
Authored: Sat Nov 11 19:04:35 2017 +0100
Committer: Oleg Kalnichevski <olegk@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();
         }
 


Mime
View raw message