hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r406393 - /jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/protocol/HttpService.java
Date Sun, 14 May 2006 18:09:40 GMT
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();
                 }
             }
             



Mime
View raw message