hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r379834 - /jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/protocol/ResponseConnControl.java
Date Wed, 22 Feb 2006 18:34:03 GMT
Author: olegk
Date: Wed Feb 22 10:34:01 2006
New Revision: 379834

URL: http://svn.apache.org/viewcvs?rev=379834&view=rev
Log:
Bug fix. It took me full 8 hours to track it down. Damn it

Modified:
    jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/protocol/ResponseConnControl.java

Modified: jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/protocol/ResponseConnControl.java
URL: http://svn.apache.org/viewcvs/jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/protocol/ResponseConnControl.java?rev=379834&r1=379833&r2=379834&view=diff
==============================================================================
--- jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/protocol/ResponseConnControl.java
(original)
+++ jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/protocol/ResponseConnControl.java
Wed Feb 22 10:34:01 2006
@@ -83,7 +83,7 @@
         if (entity != null) {
             HttpVersion ver = response.getStatusLine().getHttpVersion();
             if (entity.getContentLength() < 0 && 
-                    (!entity.isChunked()) || ver.lessEquals(HttpVersion.HTTP_1_0)) {
+                    (!entity.isChunked() || ver.lessEquals(HttpVersion.HTTP_1_0))) {
                 response.setHeader(new Header(HTTP.CONN_DIRECTIVE, HTTP.CONN_CLOSE));
                 return;
             }



Mime
View raw message