Author: billbarker Date: Wed Dec 28 23:58:51 2005 New Revision: 359753 URL: http://svn.apache.org/viewcvs?rev=359753&view=rev Log: Unconditionally return EOS for an attempt to read the body of any request that doesn't send CL or TE.
I haven't seen any real objections to the patch (and it can't break a working HTTP/1.0 client :). Also, it brings us in like with what Httpd does in this case. Fix for Bug #38030 Submitted By: Remy Modified: tomcat/connectors/trunk/http11/src/java/org/apache/coyote/http11/Http11Processor.java Modified: tomcat/connectors/trunk/http11/src/java/org/apache/coyote/http11/Http11Processor.java URL: http://svn.apache.org/viewcvs/tomcat/connectors/trunk/http11/src/java/org/apache/coyote/http11/Http11Processor.java?rev=359753&r1=359752&r2=359753&view=diff ============================================================================== --- tomcat/connectors/trunk/http11/src/java/org/apache/coyote/http11/Http11Processor.java (original) +++ tomcat/connectors/trunk/http11/src/java/org/apache/coyote/http11/Http11Processor.java Wed Dec 28 23:58:51 2005 @@ -1327,18 +1327,13 @@ parseHost(valueMB); if (!contentDelimitation) { - // If there's no content length and we're using keep-alive - // (HTTP/1.0 with keep-alive or HTTP/1.1), assume + // If there's no content length + // (broken HTTP/1.0 or HTTP/1.1), assume // the client is not broken and didn't send a body - if (keepAlive) { - inputBuffer.addActiveFilter + inputBuffer.addActiveFilter (inputFilters[Constants.VOID_FILTER]); - contentDelimitation = true; - } + contentDelimitation = true; } - - if (!contentDelimitation) - keepAlive = false; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]