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-connectors/http11/src/java/org/apache/coyote/http11/filters IdentityInputFilter.java
Date Thu, 06 Dec 2001 06:46:46 GMT
remm        01/12/05 22:46:46

  Modified:    http11/src/java/org/apache/coyote/http11/filters
                        IdentityInputFilter.java
  Log:
  - Handle the case where no content-length was specified.
  
  Revision  Changes    Path
  1.4       +1 -5      jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/filters/IdentityInputFilter.java
  
  Index: IdentityInputFilter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/filters/IdentityInputFilter.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- IdentityInputFilter.java	2001/12/04 06:33:07	1.3
  +++ IdentityInputFilter.java	2001/12/06 06:46:46	1.4
  @@ -162,18 +162,14 @@
                       chunk.setBytes(chunk.getBytes(), chunk.getStart(), 
                                      (int) remaining);
                       result = (int) remaining;
  -                    remaining = -1;
  -                } else {
  -                    remaining = remaining - result;
                   }
  +                remaining = remaining - result;
               } else {
                   // No more bytes left to be read : return -1 and clear the 
                   // buffer
                   chunk.recycle();
                   result = -1;
               }
  -        } else {
  -            result = -1;
           }
   
           return result;
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message