mturk 2005/04/27 07:12:48
Modified: jk/native/common jk_ajp_common.c jk_ajp_common.h
Log:
Also set the SC_A_STORED_METHOD when passing arbitrary
request methods as attributes.
Revision Changes Path
1.107 +3 -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.106
retrieving revision 1.107
diff -u -r1.106 -r1.107
--- jk_ajp_common.c 27 Apr 2005 14:06:17 -0000 1.106
+++ jk_ajp_common.c 27 Apr 2005 14:12:48 -0000 1.107
@@ -532,7 +532,8 @@
if (method == SC_M_JK_STORED) {
if (JK_IS_DEBUG_LEVEL(l))
jk_log(l, JK_LOG_DEBUG, "unknown method %s", s->method);
- if (jk_b_append_string(msg, s->method)) {
+ if (jk_b_append_byte(msg, SC_A_STORED_METHOD) ||
+ jk_b_append_string(msg, s->method)) {
jk_log(l, JK_LOG_ERROR,
"failed appending the request method");
JK_TRACE_EXIT(l);
1.34 +2 -1
jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.h
Index: jk_ajp_common.h
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.h,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- jk_ajp_common.h 27 Apr 2005 14:06:17 -0000 1.33
+++ jk_ajp_common.h 27 Apr 2005 14:12:48 -0000 1.34
@@ -49,6 +49,7 @@
#define SC_A_REQ_ATTRIBUTE (unsigned char)10
#define SC_A_SSL_KEY_SIZE (unsigned char)11 /* only in if
JkOptions +ForwardKeySize */
#define SC_A_SECRET (unsigned char)12
+#define SC_A_STORED_METHOD (unsigned char)13
#define SC_A_ARE_DONE (unsigned char)0xFF
/*
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]