Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2009, Roxen IS. - // $Id: module.pike,v 1.246 2012/07/02 10:05:18 mast Exp $ + // $Id: module.pike,v 1.247 2012/09/24 16:06:41 grubba Exp $      #include <module_constants.h>   #include <module.h>   #include <request_trace.h>      constant __pragma_save_parent__ = 1;      // Tell Pike.count_memory this is global.   constant pike_cycle_depth = 0;   
Roxen.git/server/base_server/module.pike:481:    mapping(string:string) get_response_headers()    {    if (!response_headers) {    // Old kludge inherited from configuration.try_get_file.    if (!id->misc->common)    id->misc->common = ([]);       RequestID sub_id = id->clone_me();    sub_id->misc->common = id->misc->common;    -  sub_id->not_query = query_location() + path; -  sub_id->raw_url = replace (id->raw_url, id->not_query, sub_id->not_query); +  sub_id->raw_url = sub_id->not_query = query_location() + path; +  if ((sub_id->raw_url != id->raw_url) && (id->raw_url != id->not_query)) { +  // sub_id->raw_url = replace (id->raw_url, id->not_query, sub_id->not_query); +  sub_id->raw_url = sub_id->not_query + +  (({ "" }) + (id->raw_url/"?")[1..]) * "?"; +  }    sub_id->method = "HEAD";       mapping(string:mixed)|int(-1..0)|object res = find_file (path, sub_id);    if (res == -1) res = ([]);    else if (objectp (res)) {    string ext;    if(stringp(sub_id->extension)) {    sub_id->not_query += sub_id->extension;    ext = lower_case(Roxen.extension(sub_id->not_query, sub_id));    }