Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.537 2003/08/13 15:25:55 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.538 2003/08/26 16:15:36 grubba Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>   #include <request_trace.h>   #include <timers.h>      #define CATCH(P,X) do{mixed e;if(e=catch{X;})report_error("While "+P+"\n"+describe_backtrace(e));}while(0)      // --- Locale defines ---   //<locale-token project="roxen_start"> LOC_S </locale-token>
Roxen.git/server/base_server/configuration.pike:1810:    recur_func = lambda(string path, int d, RoxenModule module,    MultiStatus stat, RequestID id) {    module->recurse_find_properties(path, "DAV:propname", d,    stat, id);    };    break;    case "DAV:allprop":    if (recur_func)    return Roxen.http_low_answer(400, "Bad DAV request (23.3.2.1).");    recur_func = lambda(string path, int d, RoxenModule module, -  MultiStatus stat, RequestID id) { +  MultiStatus stat, RequestID id, +  multiset(string)|void filt) {    module->recurse_find_properties(path, "DAV:allprop", d, -  stat, id); +  stat, id, filt);    };    break;    case "DAV:prop":    if (recur_func)    return Roxen.http_low_answer(400, "Bad DAV request (23.3.2.1).");    recur_func = lambda(string path, int d, RoxenModule module,    MultiStatus stat, RequestID id,    multiset(string) filt) {    module->recurse_find_properties(path, "DAV:prop", d,    stat, id, filt);    }; -  extras = ({ -  (multiset)(prop->get_children()->get_full_name() - ({ "" })) -  }); +  // FALL_THROUGH +  case "http://sapportals.com/xmlns/cm/webdavinclude": +  // Support for draft-reschke-webdav-allprop-include-04 +  // FIXME: Should we check that +  // http://sapportals.com/xmlns/cm/webdavinclude only +  // occurrs in the DAV:allprop case? +  multiset(string) props = +  (multiset(string))(prop->get_children()->get_full_name() - +  ({ "" })); +  if (extras) { +  extras[0] |= props; +  } else { +  extras = ({ props }); +  }    break;    default:    break;    }    }    } else {    // RFC 2518 8.1:    // A client may choose not to submit a request body. An empty    // PROPFIND request body MUST be treated as a request for the    // names and values of all properties.