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.533 2003/10/07 10:45:07 anders Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.534 2003/10/20 14:49:23 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:1252:    lower_case),    values(m->extra_heads));    else    m->extra_heads=([]);       switch (m->error||200)    {    case 302: // redirect    if (m->extra_heads &&    (m->extra_heads->location)) -  res = sprintf("Returned redirect to %s ", m->extra_heads->location); +  res = sprintf("Returned redirect to %O ", m->extra_heads->location);    else    res = "Returned redirect, but no location header. ";    break;       case 401:    if (m->extra_heads["www-authenticate"]) -  res = sprintf("Returned authentication failed: %s ", +  res = sprintf("Returned authentication failed: %O ",    m->extra_heads["www-authenticate"]);    else    res = "Returned authentication failed. ";    break;       case 200:    res = "Returned ok. ";    break;       default: -  res = sprintf("Returned %d. ", m->error); +  res = sprintf("Returned %O. ", m->error);    }       if (!zero_type(m->len))    if (m->len<0)    res += "No data ";    else -  res += sprintf("%d bytes ", m->len); +  res += sprintf("%O bytes ", m->len);    else if (stringp(m->data))    res += sprintf("%d bytes ", strlen(m->data));    else if (objectp(m->file))    if (catch {    Stat a=m->file->stat(); -  res += sprintf("%d bytes ", a[1]-m->file->tell()); +  res += sprintf("%O bytes ", a[1]-m->file->tell());    })    res += "? bytes ";       if (m->data) res += "(static)";    else if (m->file) res += "(open file)";       if (stringp(m->extra_heads["content-type"]) ||    stringp(m->type)) { -  res += sprintf(" of %s", m->type||m->extra_heads["content-type"]); +  res += sprintf(" of %O", m->type||m->extra_heads["content-type"]);    }       res+="<br />";       return res;   }      mapping|int(-1..0) low_get_file(RequestID id, int|void no_magic)   //! The function that actually tries to find the data requested. All   //! modules except last and filter type modules are mapped, in order,