mbecke      2003/07/01 17:37:26

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        WireLogInputStream.java
  Log:
  Changed read(byte[]) so only bytes that have been read are written to the wire.
  PR: 21202
  
  Revision  Changes    Path
  1.12      +4 -4      
jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/WireLogInputStream.java
  
  Index: WireLogInputStream.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/WireLogInputStream.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- WireLogInputStream.java   26 May 2003 22:07:22 -0000      1.11
  +++ WireLogInputStream.java   2 Jul 2003 00:37:26 -0000       1.12
  @@ -121,7 +121,7 @@
       public int read(byte[] b) throws IOException {
           int l = this.in.read(b);
           if (l > 0) {
  -            Wire.input(b);
  +            Wire.input(b, 0, l);
           }
           return l;
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to