]> granicus.if.org Git - apache/commit
Add a filter_init function to the filters so that a filter can execute
authorJustin Erenkrantz <jerenkrantz@apache.org>
Fri, 28 Jun 2002 08:40:25 +0000 (08:40 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Fri, 28 Jun 2002 08:40:25 +0000 (08:40 +0000)
commita65043db401732411c54771d2dc41c52d0fee825
tree6f2526d6cfafe0ad8f5becd8116bf856bc34ec6f
parentd6f99bc801b84ad406d7bd1f526a5b77ad3c57a6
Add a filter_init function to the filters so that a filter can execute
arbitrary code before the handlers are invoked.

This resolves an issue with incorrect 304s on If-Modified-Since mod_include
requests since ap_meets_conditions() is not aware that this is a dynamic
request and it is not possible to satisfy 304 for these requests (unless
xbithack full is on, of course).  When mod_include runs as a filter, it is
too late to set any flag since the handler is responsible for calling
ap_meets_conditions(), which it should do before generating any data.

If a module doesn't need to run such arbitrary code, it can just pass NULL
as the argument and all is well.

PR: 9673
Reviewed by: Ryan Bloom and others

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95906 13f79535-47bb-0310-9956-ffa450edef68
18 files changed:
CHANGES
include/ap_mmn.h
include/util_filter.h
modules/experimental/mod_cache.c
modules/experimental/mod_case_filter.c
modules/experimental/mod_case_filter_in.c
modules/experimental/mod_charset_lite.c
modules/experimental/mod_ext_filter.c
modules/filters/mod_deflate.c
modules/filters/mod_include.c
modules/http/http_core.c
modules/metadata/mod_headers.c
modules/proxy/proxy_ftp.c
modules/ssl/ssl_engine_io.c
modules/test/mod_bucketeer.c
server/config.c
server/core.c
server/util_filter.c