Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:2808:       if (recurse_count > 50) {    TRACE_ENTER ("Looped " + recurse_count +    " times in internal redirects - giving up", 0);    TRACE_LEAVE ("");    }       else {    Configuration oc = id->conf;    id->not_query = fname; +  +  // Make sure RXML defines don't survive <insert file/>. +  // Fixes [bug 6631] where the return code for the outer +  // RXML scope caused the <insert file/> to fail. +  m_delete(id->misc, "defines"); +  m_delete(id->misc, "error_code"); +     TRY_FIRST_MODULES (file, open_file (fname, mode, id,    internal_get, recurse_count + 1));    fname = id->not_query;       if(search(mode, "R")!=-1) // raw (as in not parsed..)    {    string f;    mode -= "R";    if(f = real_file(fname, id))    {
Roxen.git/server/base_server/configuration.pike:5314:    http_compr_exact_mimes = mkmapping(exact_mimes,    ({ 1 }) * sizeof(exact_mimes));    http_compr_main_mimes = mkmapping(main_mimes,    ({ 1 }) * sizeof(main_mimes));    };    defvar("http_compression_mimetypes",    ({ "text/*",    "application/javascript",    "application/x-javascript",    "application/json", -  "application/xhtml+xml" }), +  "application/xhtml+xml", +  "image/svg+xml" }),    DLOCALE(1002, "Compression: Enabled MIME-types"),    TYPE_STRING_LIST,    DLOCALE(1003, "The MIME types for which to enable compression. The "    "forms \"maintype/*\" and \"maintype/subtype\" are allowed, "    "but globbing on the general form (such as " -  "\"maintype/*subtype\") is not allowed and such globs will " -  "be silently ignored.")) +  "\"maintype/*subtype\" or \"maintype/sub*\") is not allowed " +  "and such globs will be silently ignored."))    ->add_changed_callback(lambda(object v)    { set_mimetypes(v->query());    });    set_mimetypes(query("http_compression_mimetypes"));       defvar("http_compression_min_size", 1024,    DLOCALE(1004, "Compression: Minimum content size"),    TYPE_INT,    DLOCALE(1005, "The minimum file size for which to enable compression. "    "(It might not be worth it to compress a request if it can "