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 - 2001, Roxen IS.   //      // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.496 2001/11/27 17:56:24 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.497 2001/11/27 18:06:44 mast 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:2223:   //! sent directly to the client. Internal requests are recognized by   //! the id->misc->internal_get flag being non-zero.   {    string res, q, cache_key;    RequestID fake_id;    mapping m;       if(!objectp(id))    error("No ID passed to 'try_get_file'\n");    +  // id->misc->common is here for compatibility; it's better to use +  // id->root_id->misc. +  if ( !id->misc ) +  id->misc = ([]); +  if ( !id->misc->common ) +  id->misc->common = ([]); +     fake_id = id->clone_me();    -  +  fake_id->misc->common = id->misc->common;    fake_id->misc->internal_get = !not_internal;       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);