tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@locus.apache.org
Subject cvs commit: jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/connector/http HttpRequestStream.java
Date Sat, 29 Jul 2000 20:33:34 GMT
remm        00/07/29 13:33:34

  Modified:    proposals/catalina/src/share/org/apache/tomcat/connector/http
                        HttpRequestStream.java
  Log:
  - Small cleanup of the code
  
  Revision  Changes    Path
  1.4       +8 -10     jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/connector/http/HttpRequestStream.java
  
  Index: HttpRequestStream.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/connector/http/HttpRequestStream.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- HttpRequestStream.java	2000/07/28 04:00:30	1.3
  +++ HttpRequestStream.java	2000/07/29 20:33:34	1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/connector/http/HttpRequestStream.java,v
1.3 2000/07/28 04:00:30 remm Exp $
  - * $Revision: 1.3 $
  - * $Date: 2000/07/28 04:00:30 $
  + * $Header: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/connector/http/HttpRequestStream.java,v
1.4 2000/07/29 20:33:34 remm Exp $
  + * $Revision: 1.4 $
  + * $Date: 2000/07/29 20:33:34 $
    *
    * ====================================================================
    * 
  @@ -89,10 +89,8 @@
   	super(request);
           String transferEncoding = request.getHeader("Transfer-Encoding");
           
  -        if ((transferEncoding != null) 
  -            && (transferEncoding.indexOf("chunked") != -1)) {
  -            chunk = true;
  -        }
  +        chunk = ((transferEncoding != null) 
  +                 && (transferEncoding.indexOf("chunked") != -1));
           
       }
       
  @@ -183,10 +181,10 @@
           if (closed)
               throw new IOException(sm.getString("requestStream.read.closed"));
           
  -        if (endChunk)
  -            return (-1);
  -        
           if (chunk) {
  +            
  +            if (endChunk)
  +                return (-1);
               
               if ((chunkBuffer == null)
                   || (chunkPos == chunkLength)) {
  
  
  

Mime
View raw message