[cvs-annodex] commit (/annodex):
mod_annodex-ap13/trunk/mod_annodex.c
conrad
nobody at lists.annodex.net
Thu Apr 14 22:39:51 EST 2005
Update of /annodex (new revision 1253)
Modified files:
mod_annodex-ap13/trunk/mod_annodex.c
Log Message:
handle OPTIONS, and disallow anything other than OPTIONS, GET, HEAD
Closes ticket:92
Modified: mod_annodex-ap13/trunk/mod_annodex.c
===================================================================
--- mod_annodex-ap13/trunk/mod_annodex.c 2005-04-14 12:36:16 UTC (rev 1252)
+++ mod_annodex-ap13/trunk/mod_annodex.c 2005-04-14 12:39:49 UTC (rev 1253)
@@ -814,6 +814,15 @@
return DECLINED;
}
+ if (r->method_number == M_OPTIONS) {
+ r->allowed = (1 << M_GET);
+ return DECLINED;
+ }
+
+ if (r->method_number != M_GET) {
+ return HTTP_METHOD_NOT_ALLOWED;
+ }
+
/* check if file exists */
if (r->finfo.st_mode == 0) {
struct stat statbuf;
--
conrad
More information about the cvs-annodex
mailing list