branch | http-client-branch |
changeset 56082 | 1da51fab3032 |
parent 56079 | d23b02f37fce |
--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/Exchange.java Tue Feb 06 15:34:08 2018 +0000 +++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/Exchange.java Tue Feb 06 16:07:43 2018 +0000 @@ -408,7 +408,7 @@ } HttpResponse.BodySubscriber<T> ignoreBody(int status, HttpHeaders hdrs) { - return HttpResponse.BodySubscriber.discard((T)null); + return HttpResponse.BodySubscriber.replace(null); } // if this response was received in reply to an upgrade