src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/ResponseContent.java
--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/ResponseContent.java Fri Dec 15 14:08:15 2017 +0100
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/ResponseContent.java Tue Dec 19 15:48:49 2017 +0000
@@ -401,8 +401,8 @@
pusher.onSubscribe(this.sub = sub);
try {
if (contentLength == 0) {
+ onFinished.run();
pusher.onComplete();
- onFinished.run();
onComplete.accept(null);
}
} catch (Throwable t) {