Changeset 1253

Show
Ignore:
Timestamp:
2005-04-14 05:39:49 (4 years ago)
Author:
conrad
Message:

handle OPTIONS, and disallow anything other than OPTIONS, GET, HEAD
Closes ticket:92

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mod_annodex-ap13/trunk/mod_annodex.c

    r1173 r1253  
    815815  } 
    816816 
     817  if (r->method_number == M_OPTIONS) { 
     818    r->allowed = (1 << M_GET); 
     819    return DECLINED; 
     820  } 
     821 
     822  if (r->method_number != M_GET) { 
     823    return HTTP_METHOD_NOT_ALLOWED; 
     824  } 
     825 
    817826  /* check if file exists */ 
    818827  if (r->finfo.st_mode == 0) {