diff options
author | Graham Leggett <minfrin@apache.org> | 2015-02-21 23:59:05 +0000 |
---|---|---|
committer | Graham Leggett <minfrin@apache.org> | 2015-02-21 23:59:05 +0000 |
commit | 9850539bd7ab7172c5a26854d1e18ae99191ca68 (patch) | |
tree | e5e6a6d32adde589f7835611bc1c951d411bf6b2 /include/http_core.h | |
parent | 686e567ee5b2f658b106c1c672c75ba5b0498a2e (diff) | |
download | httpd-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.h | 14 |
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 */ |