From: <jbo...@li...> - 2005-12-29 18:11:50
|
Author: rem...@jb... Date: 2005-12-29 13:11:44 -0500 (Thu, 29 Dec 2005) New Revision: 1959 Modified: trunk/labs/jbossweb/src/share/classes/org/apache/coyote/http11/Http11AprProcessor.java Log: - Port patch for more robust HTTP/1.0 POST handling. Modified: trunk/labs/jbossweb/src/share/classes/org/apache/coyote/http11/Http11AprProcessor.java =================================================================== --- trunk/labs/jbossweb/src/share/classes/org/apache/coyote/http11/Http11AprProcessor.java 2005-12-29 18:09:49 UTC (rev 1958) +++ trunk/labs/jbossweb/src/share/classes/org/apache/coyote/http11/Http11AprProcessor.java 2005-12-29 18:11:44 UTC (rev 1959) @@ -1340,19 +1340,14 @@ 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; - // Advertise sendfile support through a request attribute if (endpoint.getUseSendfile()) { request.setAttribute("org.apache.tomcat.sendfile.support", Boolean.TRUE); |