diff options
author | Paul J. Reder <rederpj@apache.org> | 2003-12-12 18:03:59 +0100 |
---|---|---|
committer | Paul J. Reder <rederpj@apache.org> | 2003-12-12 18:03:59 +0100 |
commit | 3e85c7882d0de67ca85ecf53a469e390376fa921 (patch) | |
tree | f0af6011c961faa8629276f2f9c24dc724ce0cf3 /modules/metadata | |
parent | Fix format string warnings from gcc on amd64: (diff) | |
download | apache2-3e85c7882d0de67ca85ecf53a469e390376fa921.tar.xz apache2-3e85c7882d0de67ca85ecf53a469e390376fa921.zip |
*) Add a hook (insert_error_filter) to allow filters to re-insert
themselves during processing of error responses. Enable mod_expires
to use the new hook to include Expires headers in valid error
responses. This addresses an RFC violation. It fixes PRs 19794,
24884, and 25123. [Paul J. Reder]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102038 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/metadata')
-rw-r--r-- | modules/metadata/mod_expires.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/metadata/mod_expires.c b/modules/metadata/mod_expires.c index 44a63d56d7..3025e3318e 100644 --- a/modules/metadata/mod_expires.c +++ b/modules/metadata/mod_expires.c @@ -205,6 +205,7 @@ #include "http_config.h" #include "http_log.h" #include "http_request.h" +#include "http_protocol.h" typedef struct { int active; @@ -585,6 +586,7 @@ static void register_hooks(apr_pool_t *p) { ap_register_output_filter("MOD_EXPIRES", expires_filter, NULL, AP_FTYPE_CONTENT_SET); + ap_hook_insert_error_filter(expires_insert_filter, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_insert_filter(expires_insert_filter, NULL, NULL, APR_HOOK_MIDDLE); } |