You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2001/10/09 00:28:10 UTC

cvs commit: jakarta-tomcat-connectors/jk/native/common jk_ajp_common.c

marcsaeg    01/10/08 15:28:10

  Modified:    jk/native/common jk_ajp_common.c
  Log:
  POSTed data was not being sent to Tomcat using AJP13.  The request data was
  being read into op->post, but being written from op->reply!  Basically, it
  always sent an empty buffer as the posted data.
  
  Revision  Changes    Path
  1.14      +2 -2      jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c
  
  Index: jk_ajp_common.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- jk_ajp_common.c	2001/10/01 20:50:39	1.13
  +++ jk_ajp_common.c	2001/10/08 22:28:09	1.14
  @@ -59,7 +59,7 @@
    * Description: common stuff for bi-directional protocols ajp13/ajp14.     *
    * Author:      Gal Shachor <sh...@il.ibm.com>                           *
    * Author:      Henri Gomez <hg...@slib.fr>                               *
  - * Version:     $Revision: 1.13 $                                           *
  + * Version:     $Revision: 1.14 $                                           *
    ***************************************************************************/
   
   
  @@ -866,7 +866,7 @@
   				return JK_FALSE;
   			}
   			s->content_read = len;
  -			if (!ajp_connection_tcp_send_message(ae, op->reply, l)) {
  +			if (!ajp_connection_tcp_send_message(ae, op->post, l)) {
   				jk_log(l, JK_LOG_ERROR, "Error sending request body\n");
   				return JK_FALSE;
   			}