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.176 2004/05/05 13:54:32 grubba Exp $ + // $Id: module.pike,v 1.177 2004/05/05 13:54:58 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:953:    next_condition:    foreach(condition, array(array(string)) sub_cond) {    int negate;    foreach(sub_cond, array(string) token) {    switch(token[0]) {    case "not":    negate = !negate;    break;    case "etag":    // Not supported yet. -  continue next_contition; // Fail. +  continue next_condition; // Fail.    case "lock":    if ((lock && lock->locktoken == token[1]) != negate) {    // Lock mismatch. -  continue next_contition; // Fail. +  continue next_condition; // Fail.    }    negate = 0;    break;    }    }    return 0; // Found matching sub-condition.    }    if (lock) return Roxen.http_status(423);    return Roxen.http_status(412);   }