billbarker    02/03/10 22:07:00

  Modified:    coyote/src/java/org/apache/coyote/tomcat3 CoyoteRequest.java
  Log:
  Fix handling of the request body.
  
  It helps if you actually *read* the request body at some point.
  
  Revision  Changes    Path
  1.3       +3 -2      
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/CoyoteRequest.java
  
  Index: CoyoteRequest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/CoyoteRequest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CoyoteRequest.java        11 Mar 2002 00:24:10 -0000      1.2
  +++ CoyoteRequest.java        11 Mar 2002 06:07:00 -0000      1.3
  @@ -111,6 +111,7 @@
        } catch(IOException iex) { // ignore
        }
        headers  = coyoteRequest.getMimeHeaders();
  +     contextM.log("Headers: " + headers);
        scookies.setHeaders(headers);
        params.setHeaders(headers);
       }
  @@ -124,7 +125,7 @@
        if( available!= -1 )
            available--;
        if(pos >= end) {
  -         if(doRead() < 0)
  +         if(readBytes() < 0)
                return -1;
        }
        return readBuffer[pos++] & 0xFF;
  @@ -135,7 +136,7 @@
            return -1;
        // if available == -1: unknown length, we'll read until end of stream.
        if(pos >= end) {
  -         if(doRead() < 0) 
  +         if(readBytes() < 0) 
                return -1;
        }
        int rd = -1;
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to