Author: billbarker Date: Wed Dec 28 23:18:41 2005 New Revision: 359751 URL: http://svn.apache.org/viewcvs?rev=359751&view=rev Log: Handle the case where the Servlet attempts to read the Request body, in the case that no body was sent.
And to think that we've just been discussing this on dev@ ;-) Fix for Bug #38047 Modified: tomcat/connectors/trunk/jk/java/org/apache/jk/common/JkInputStream.java Modified: tomcat/connectors/trunk/jk/java/org/apache/jk/common/JkInputStream.java URL: http://svn.apache.org/viewcvs/tomcat/connectors/trunk/jk/java/org/apache/jk/common/JkInputStream.java?rev=359751&r1=359750&r2=359751&view=diff ============================================================================== --- tomcat/connectors/trunk/jk/java/org/apache/jk/common/JkInputStream.java (original) +++ tomcat/connectors/trunk/jk/java/org/apache/jk/common/JkInputStream.java Wed Dec 28 23:18:41 2005 @@ -158,8 +158,9 @@ if( end_of_stream ) { return -1; } - if( isFirst ) { - // Handle special first-body-chunk + + if( isFirst && isReadRequired ) { + // Handle special first-body-chunk, but only if httpd expects it. if( !receive() ) { return 0; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]