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 2009/03/23 21:02:22 UTC

svn commit: r757523 - in /httpcomponents/oac.hc3x/trunk: release_notes.txt src/java/org/apache/commons/httpclient/WireLogInputStream.java

Author: olegk
Date: Mon Mar 23 20:02:21 2009
New Revision: 757523

URL: http://svn.apache.org/viewvc?rev=757523&view=rev
Log:
HTTPCLIENT-837: Fixed problem with the wire log skipping zero byte values if read one byte at a time.

Contributed by Kirill Safonov <ksafonov at swiftteams.com>

Modified:
    httpcomponents/oac.hc3x/trunk/release_notes.txt
    httpcomponents/oac.hc3x/trunk/src/java/org/apache/commons/httpclient/WireLogInputStream.java

Modified: httpcomponents/oac.hc3x/trunk/release_notes.txt
URL: http://svn.apache.org/viewvc/httpcomponents/oac.hc3x/trunk/release_notes.txt?rev=757523&r1=757522&r2=757523&view=diff
==============================================================================
--- httpcomponents/oac.hc3x/trunk/release_notes.txt (original)
+++ httpcomponents/oac.hc3x/trunk/release_notes.txt Mon Mar 23 20:02:21 2009
@@ -1,5 +1,9 @@
 Changes since 3.1 Final
 
+* [HTTPCLIENT-837] - Fixed problem with the wire log skipping zero byte values 
+  if read one byte at a time.
+           Contributed by Kirill Safonov <ksafonov at swiftteams.com>
+
 * [HTTPCLIENT-804] - ChunkedInputStream no longer accepts truncated chunks 
   as valid input.
            Contributed by Oleg Kalnichevski <olegk at apache.org>

Modified: httpcomponents/oac.hc3x/trunk/src/java/org/apache/commons/httpclient/WireLogInputStream.java
URL: http://svn.apache.org/viewvc/httpcomponents/oac.hc3x/trunk/src/java/org/apache/commons/httpclient/WireLogInputStream.java?rev=757523&r1=757522&r2=757523&view=diff
==============================================================================
--- httpcomponents/oac.hc3x/trunk/src/java/org/apache/commons/httpclient/WireLogInputStream.java (original)
+++ httpcomponents/oac.hc3x/trunk/src/java/org/apache/commons/httpclient/WireLogInputStream.java Mon Mar 23 20:02:21 2009
@@ -79,7 +79,7 @@
      */
     public int read() throws IOException {
         int l = this.in.read();
-        if (l > 0) { 
+        if (l != -1) { 
             wire.input(l);
         }
         return l;