Roxen.git / server / base_server / configuration.pike

version» Context lines:

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 "