Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS. - // $Id: module.pike,v 1.143 2003/08/07 12:52:04 jonasw Exp $ + // $Id: module.pike,v 1.144 2003/08/13 15:24:09 grubba Exp $      #include <module_constants.h>   #include <module.h>   #include <request_trace.h>      constant __pragma_save_parent__ = 1;      inherit "basic_defvar";   mapping(string:array(int)) error_log=([]);   
Roxen.git/server/base_server/module.pike:442:   //!   //! @returns   //! Returns a result mapping. May return @expr{0@} (zero) on success.   //!   //! @note   //! The default implementation does not support deletion.   mapping(string:mixed) remove_property(string path, string prop_name,    RequestID id)   {    switch(prop_name) { +  case "http://apache.org/dav/props/executable":    case "DAV:displayname": // 13.2    case "DAV:getcontentlength": // 13.4    case "DAV:getcontenttype": // 13.5    case "DAV:getlastmodified": // 13.7    return Roxen.http_low_answer(409,    "Attempt to remove a read-only property.");    } -  return Roxen.http_low_answer(404, -  "Attempt to remove an unknown property."); +  // RFC 2518 12.13.1: +  // Specifying the removal of a property that does not exist +  // is not an error. +  return 0;   }      //! Default implementation of some RFC 2518 properties.   //!   //! @param path   //! @[query_location()]-relative path.   //! @param mode   //! Query-mode. Currently one of   //! @string mode   //! @value "DAV:propname"