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 - 2004, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.610 2006/06/01 11:25:40 wellhard Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.611 2006/06/21 11:02:59 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:273:    current_size -= sizeof(val[0]);    m_delete(cache, key_prefix);    return;    }    if (!val) {    return;    }       string key_frag;    if (stringp(val)) { -  key_frag = id->result_headers[val]; +  key_frag = id->request_headers[val];    } else {    key_frag = val(url, id);    }    // NOTE: The prepended NUL is for spoof protection.    key_prefix = "\0" + key_prefix + "\0" + (key_frag || "");    }    }       static void clear_some_cache()    {
Roxen.git/server/base_server/configuration.pike:355:    hits++;    return [array(string|mapping(string:mixed))]res;    }    if (!res) {    misses++;    return UNDEFINED;    }       string key_frag;    if (stringp(res)) { -  key_frag = id->result_headers[res]; +  key_frag = id->request_headers[res];    } else {    key_frag = res(url, id);    }    // NOTE: The prepended NUL is for spoof protection.    key = "\0" + key + "\0" + (key_frag || "");    };    }       void init_from_variables( )    {