axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/transport/http ChunkedInputStream.java ChunkedOutputStream.java
Date Sat, 01 Mar 2003 22:42:49 GMT
dims        2003/03/01 14:42:49

  Modified:    java/src/org/apache/axis/transport/http
                        ChunkedInputStream.java ChunkedOutputStream.java
  Log:
  Fix for Bug 17354 - some bugs in Chunked{Input|Output}Stream
  
  Revision  Changes    Path
  1.6       +1 -1      xml-axis/java/src/org/apache/axis/transport/http/ChunkedInputStream.java
  
  Index: ChunkedInputStream.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/ChunkedInputStream.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ChunkedInputStream.java	11 Dec 2002 22:38:23 -0000	1.5
  +++ ChunkedInputStream.java	1 Mar 2003 22:42:49 -0000	1.6
  @@ -82,7 +82,7 @@
           byte[] d = new byte[1];
           int rc = read(d, 0, 1);
   
  -        return rc > 0 ? d[0] : rc;
  +        return rc > 0 ? (d[0] & 0xFF) : rc;
       }
   
       public int read(byte[] b)
  
  
  
  1.7       +1 -1      xml-axis/java/src/org/apache/axis/transport/http/ChunkedOutputStream.java
  
  Index: ChunkedOutputStream.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/ChunkedOutputStream.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ChunkedOutputStream.java	11 Dec 2002 22:38:23 -0000	1.6
  +++ ChunkedOutputStream.java	1 Mar 2003 22:42:49 -0000	1.7
  @@ -113,7 +113,7 @@
               if (eos) return;
               eos = true;
           }
  -        out.write("\r\n0\r\n".getBytes());
  +        out.write("0\r\n\r\n".getBytes());
           out.flush();
       }
   
  
  
  

Mime
View raw message