Branch: Tag:

2004-05-10

2004-05-10 17:16:06 by Henrik Grubbström (Grubba) <grubba@grubba.org>

lock_file() now fails with 423 if we hold the lock, but don't have an if-header.

Rev: server/base_server/configuration.pike:1.572

5:   // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.571 2004/05/07 19:45:49 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.572 2004/05/10 17:16:06 grubba Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
1474:       if (!intp(lock_info)) {    // We already hold a lock that prevents us. +  if (id->request_headers->if) {    return Roxen.http_status(412, "Precondition Failed"); -  +  } else { +  return Roxen.http_status(423, "Locked"); +  }    } else if (lockscope == "DAV:exclusive" ?    lock_info >= LOCK_SHARED_BELOW :    lock_info >= LOCK_OWN_BELOW) {