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 Fri, 28 Jul 2000 04:00:30 GMT
remm        00/07/27 21:00:30

  Modified:    proposals/catalina/src/share/org/apache/tomcat/connector/http
                        HttpRequestStream.java
  Log:
  - Will skip any trailing headers while using chunking mode. Since
    there is no real way to properly handle those special headers
    (which are parsed after the whole request body is read), they're
    ignored as a temporary solution.
  
  Revision  Changes    Path
  1.3       +7 -5      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HttpRequestStream.java	2000/07/03 04:45:37	1.2
  +++ HttpRequestStream.java	2000/07/28 04:00:30	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/proposals/catalina/src/share/org/apache/tomcat/connector/http/HttpRequestStream.java,v
1.2 2000/07/03 04:45:37 remm Exp $
  - * $Revision: 1.2 $
  - * $Date: 2000/07/03 04:45:37 $
  + * $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 $
    *
    * ====================================================================
    * 
  @@ -205,8 +205,10 @@
                   
                   if (chunkLength == 0) {
                       
  -                    // TODO : Parse the trailing headers, if any
  -                    readLine();
  +                    // Skipping trailing headers, if any
  +                    String trailingLine = readLine();
  +                    while (!trailingLine.equals(""))
  +                        trailingLine = readLine();
                       endChunk = true;
                       return (-1);
                       // TODO : Should the stream be automatically closed ?
  
  
  

Mime
View raw message