billbarker 2005/05/15 22:12:50 Modified: catalina/src/share/org/apache/catalina/authenticator FormAuthenticator.java Log: Give Fuhrer Remy a clean build, even if as yet no Connector supports this particular ActionCode. Revision Changes Path 1.21 +3 -11 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/authenticator/FormAuthenticator.java Index: FormAuthenticator.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/authenticator/FormAuthenticator.java,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- FormAuthenticator.java 11 May 2005 21:39:41 -0000 1.20 +++ FormAuthenticator.java 16 May 2005 05:12:50 -0000 1.21 @@ -37,8 +37,7 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.coyote.InputBuffer; -import org.apache.coyote.http11.InputFilter; -import org.apache.coyote.http11.InternalInputBuffer; +import org.apache.coyote.ActionCode; import org.apache.tomcat.util.buf.ByteChunk; import org.apache.tomcat.util.buf.CharChunk; import org.apache.tomcat.util.buf.MessageBytes; @@ -389,14 +388,7 @@ if ("POST".equalsIgnoreCase(saved.getMethod())) { ByteChunk body = saved.getBody(); - // Set content length - request.getCoyoteRequest().setContentLength(body.getLength()); - - // Restore body - InputFilter savedBody = new SavedRequestInputFilter(body); - InternalInputBuffer internalBuffer = (InternalInputBuffer) - request.getCoyoteRequest().getInputBuffer(); - internalBuffer.addActiveFilter(savedBody); + request.action(ActionCode.ACTION_REQ_SET_BODY_REPLAY, body); // Set content type MessageBytes contentType = MessageBytes.newInstance();
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]