You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ke...@apache.org on 2001/02/08 00:47:16 UTC
cvs commit: jakarta-tomcat/src/native/mod_jk/common jk_ajp13.c
keith 01/02/07 15:47:15
Modified: src/native/mod_jk/common jk_ajp13.c
Log:
Add the ACL method to ajpv13
(see http://www.ietf.org/internet-drafts/draft-ietf-webdav-acl-04.txt)
Revision Changes Path
1.5 +7 -3 jakarta-tomcat/src/native/mod_jk/common/jk_ajp13.c
Index: jk_ajp13.c
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/native/mod_jk/common/jk_ajp13.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- jk_ajp13.c 2001/01/30 05:38:34 1.4
+++ jk_ajp13.c 2001/02/07 23:47:12 1.5
@@ -56,7 +56,7 @@
/***************************************************************************
* Description: Experimental bi-directionl protocol handler. *
* Author: Gal Shachor <sh...@il.ibm.com> *
- * Version: $Revision: 1.4 $ *
+ * Version: $Revision: 1.5 $ *
***************************************************************************/
@@ -82,8 +82,8 @@
/*
* Request methods, coded as numbers instead of strings.
- * The list of methods was taken from Section 5.1.1 of RFC 2616
- * and RFC 2518
+ * The list of methods was taken from Section 5.1.1 of RFC 2616,
+ * RFC 2518, and the ACL IETF draft.
* Method = "OPTIONS"
* | "GET"
* | "HEAD"
@@ -98,6 +98,7 @@
* | "MOVE"
* | "LOCK"
* | "UNLOCK"
+ * | "ACL"
*
*/
#define SC_M_OPTIONS (unsigned char)1
@@ -114,6 +115,7 @@
#define SC_M_MOVE (unsigned char)12
#define SC_M_LOCK (unsigned char)13
#define SC_M_UNLOCK (unsigned char)14
+#define SC_M_ACL (unsigned char)15
/*
@@ -239,6 +241,8 @@
*sc = SC_M_LOCK;
} else if(0 == strcmp(method, "UNLOCK")) {
*sc = SC_M_UNLOCK;
+ } else if(0 == strcmp(method, "ACL")) {
+ *sc = SC_M_ACL;
} else {
rc = JK_FALSE;
}