You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2002/07/08 18:50:46 UTC

cvs commit: jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11 Http11Processor.java

remm        2002/07/08 09:50:46

  Modified:    http11/src/java/org/apache/coyote/http11
                        Http11Processor.java
  Log:
  - Fix support for HTTP/1.0 keep-alive.
  
  Revision  Changes    Path
  1.34      +3 -2      jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java
  
  Index: Http11Processor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- Http11Processor.java	26 Apr 2002 03:26:21 -0000	1.33
  +++ Http11Processor.java	8 Jul 2002 16:50:46 -0000	1.34
  @@ -739,9 +739,10 @@
           parseHost(valueMB);
   
           if (!contentDelimitation) {
  -            // If there's no content length and we're using HTTP/1.1, assume
  +            // If there's no content length and we're using keep-alive 
  +            // (HTTP/1.0 with keep-alive or HTTP/1.1), assume
               // the client is not broken and didn't send a body
  -            if (http11) {
  +            if (keepAlive) {
                   inputBuffer.addActiveFilter
                       (inputFilters[Constants.VOID_FILTER]);
                   contentDelimitation = true;
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>