summaryrefslogtreecommitdiff
path: root/include/http_core.h
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@apache.org>2015-02-21 23:59:05 +0000
committerGraham Leggett <minfrin@apache.org>2015-02-21 23:59:05 +0000
commit9850539bd7ab7172c5a26854d1e18ae99191ca68 (patch)
treee5e6a6d32adde589f7835611bc1c951d411bf6b2 /include/http_core.h
parent686e567ee5b2f658b106c1c672c75ba5b0498a2e (diff)
downloadhttpd-9850539bd7ab7172c5a26854d1e18ae99191ca68.tar.gz
core: Add expression support to ErrorDocument. Switch from a fixed
sized 664 byte array per merge to a hash table. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1661448 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/http_core.h')
-rw-r--r--include/http_core.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/http_core.h b/include/http_core.h
index 33430880cb..87481268c1 100644
--- a/include/http_core.h
+++ b/include/http_core.h
@@ -497,12 +497,7 @@ typedef struct {
overrides_t override;
allow_options_t override_opts;
- /* Custom response config. These can contain text or a URL to redirect to.
- * if response_code_strings is NULL then there are none in the config,
- * if it's not null then it's allocated to sizeof(char*)*RESPONSE_CODES.
- * This lets us do quick merges in merge_core_dir_configs().
- */
-
+ /* Used to be the custom response config. No longer used. */
char **response_code_strings; /* from ErrorDocument, not from
* ap_custom_response() */
@@ -632,6 +627,13 @@ typedef struct {
* advice
*/
unsigned int cgi_pass_auth : 2;
+
+ /** Custom response config with expression support. The hash table
+ * contains compiled expressions keyed against the custom response
+ * code.
+ */
+ apr_hash_t *response_code_exprs;
+
} core_dir_config;
/* macro to implement off by default behaviour */