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.585 2005/02/08 13:20:22 mast Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.586 2005/04/12 17:05:20 anders 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:2697:    RequestID fake_id = make_fake_id (s, id);    mapping m;       fake_id->misc->internal_get = !not_internal;    fake_id->method = "GET";       array a = open_file( fake_id->not_query, "r", fake_id, !not_internal );       m = a[1];    -  if (result_mapping) +  if (result_mapping) {    foreach(indices(m), string i)    result_mapping[i] = m[i]; -  +  if (string|function(string:string) charset = fake_id->get_output_charset()) +  result_mapping->charset = charset; +  }       if(a[0]) {    m->file = a[0];    }    else {    destruct (fake_id);    return 0;    }       CACHE( fake_id->misc->cacheable );