You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bi...@apache.org on 2005/12/29 08:18:44 UTC
svn commit: r359751 -
/tomcat/connectors/trunk/jk/java/org/apache/jk/common/JkInputStream.java
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org