hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r355625 - /jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/io/AbstractHttpDataTransmitter.java
Date Fri, 09 Dec 2005 22:59:34 GMT
Author: olegk
Date: Fri Dec  9 14:59:29 2005
New Revision: 355625

URL: http://svn.apache.org/viewcvs?rev=355625&view=rev
Log:
Bug fix

Modified:
    jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/io/AbstractHttpDataTransmitter.java

Modified: jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/io/AbstractHttpDataTransmitter.java
URL: http://svn.apache.org/viewcvs/jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/io/AbstractHttpDataTransmitter.java?rev=355625&r1=355624&r2=355625&view=diff
==============================================================================
--- jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/io/AbstractHttpDataTransmitter.java
(original)
+++ jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/io/AbstractHttpDataTransmitter.java
Fri Dec  9 14:59:29 2005
@@ -129,7 +129,7 @@
     }
     
     public void writeLine(final CharArrayBuffer s) throws IOException {
-        if (buffer == null) {
+        if (s == null) {
             return;
         }
         if (this.ascii) {
@@ -144,8 +144,8 @@
                 if (this.buffer.isFull()) {
                     flushBuffer();
                 }
-                off =+ chunk;
-                remaining =- chunk;
+                off += chunk;
+                remaining -= chunk;
             }
         } else {
             // This is VERY memory inefficient, BUT since non-ASCII charsets are 



Mime
View raw message