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.660 2008/12/08 13:38:09 grubba Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.661 2008/12/17 09:59:16 jonasw 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)      // Tell Pike.count_memory this is global.   constant pike_cycle_depth = 0;
Roxen.git/server/base_server/configuration.pike:2359:       if(objectp(fid))    {    TIMER_START(content_type_module);    if(stringp(id->extension)) {    id->not_query += id->extension;    loc = lower_case(Roxen.extension(id->not_query, id));    }    TRACE_ENTER("Content-type mapping module", types_module);    tmp=type_from_filename(id->not_query, 1, loc); -  TRACE_LEAVE(tmp?sprintf("Returned type %s %s.", tmp[0], tmp[1]||"") +  TRACE_LEAVE(tmp?sprintf("Returned type %O %s.", tmp[0], tmp[1]||"")    : "Missing type.");    if(tmp)    {    TRACE_LEAVE("");    TIMER_END(content_type_module);    return ([ "file":fid, "type":tmp[0], "encoding":tmp[1] ]);    }    TRACE_LEAVE("");    TIMER_END(content_type_module);    return ([ "file":fid, ]);