tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http HttpRequestStream.java
Date Tue, 20 Feb 2001 21:38:45 GMT
remm        01/02/20 13:38:45

  Modified:    catalina/src/share/org/apache/catalina/connector/http
                        HttpRequestStream.java
  Log:
  - The old code returns
    the bytes in the range from -128 to 127, while java.io.InputStream
    must return 0 to 255.
    That would only happen when reading a chunked input
    (SocketInputStream.read() was correct).
    Patch submitted by Jacek Kopecky <jacek@idoox.com>.
  
  Revision  Changes    Path
  1.8       +3 -3      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpRequestStream.java
  
  Index: HttpRequestStream.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpRequestStream.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- HttpRequestStream.java	2001/01/23 03:53:00	1.7
  +++ HttpRequestStream.java	2001/02/20 21:38:44	1.8
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpRequestStream.java,v
1.7 2001/01/23 03:53:00 remm Exp $
  - * $Revision: 1.7 $
  - * $Date: 2001/01/23 03:53:00 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpRequestStream.java,v
1.8 2001/02/20 21:38:44 remm Exp $
  + * $Revision: 1.8 $
  + * $Date: 2001/02/20 21:38:44 $
    *
    * ====================================================================
    * 
  @@ -206,7 +206,7 @@
                       return (-1);
               }
               
  -            return (chunkBuffer[chunkPos++]);
  +            return (chunkBuffer[chunkPos++] & 0xff);
               
           } else {
               
  
  
  

Mime
View raw message