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 2006/05/14 20:09:40 UTC

svn commit: r406393 - /jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/protocol/HttpService.java

Author: olegk
Date: Sun May 14 11:09:39 2006
New Revision: 406393

URL: http://svn.apache.org/viewcvs?rev=406393&view=rev
Log:
Fixed bug reported by gerhard oettl <gerhard.oettl.ml at oesoft.at>

Modified:
    jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/protocol/HttpService.java

Modified: jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/protocol/HttpService.java
URL: http://svn.apache.org/viewcvs/jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/protocol/HttpService.java?rev=406393&r1=406392&r2=406393&view=diff
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/protocol/HttpService.java (original)
+++ jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/protocol/HttpService.java Sun May 14 11:09:39 2006
@@ -122,8 +122,8 @@
             if (request instanceof HttpEntityEnclosingRequest) {
                 // Make sure the request content is fully consumed
                 HttpEntity entity = ((HttpEntityEnclosingRequest)request).getEntity();
-                if (entity != null && entity.getContent() != null) {
-                    entity.getContent().close();
+                if (entity != null) {
+                    entity.consumeContent();
                 }
             }