Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS.   //   // German translation by Kai Voigt    - constant cvs_version = "$Id: configuration.pike,v 1.309 2000/12/17 21:13:43 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.310 2001/05/03 17:28:19 per Exp $";   constant is_configuration = 1;   #include <module.h>   #include <roxen.h>   #include <request_trace.h>      inherit "basic_defvar";      mapping enabled_modules = ([]);   mapping(string:array(int)) error_log=([]);   
Roxen.git/server/base_server/configuration.pike:2075:    // the originating request.    if ( !id->misc )    id->misc = ([]);    if ( !id->misc->common )    id->misc->common = ([]);       fake_id = id->clone_me();       fake_id->misc->common = id->misc->common;    +  if (fake_id->scan_for_query) +  // FIXME: If we're using e.g. ftp this doesn't exist. But the +  // right solution might be that clone_me() in an ftp id object +  // returns a vanilla (i.e. http) id instead when this function is +  // used. +  s = fake_id->scan_for_query (s); +     s = Roxen.fix_relative (s, id);       if(!id->pragma["no-cache"] && !nocache && (!id->auth || !id->auth[0])) {    cache_key =    s + "\0" +    id->request_headers->cookie + "\0" +    id->request_headers["user-agent"];    if(res = cache_lookup("file:"+name, cache_key))    return res;    }