Author: jfrederic.clere(a)jboss.com
Date: 2008-04-22 12:45:09 -0400 (Tue, 22 Apr 2008)
New Revision: 1554
Added:
sandbox/httpd_filters/README
Modified:
sandbox/httpd_filters/cookie_filter.c
Log:
Add README and get the filter earlier to get trace when use with other modules.
Added: sandbox/httpd_filters/README
===================================================================
--- sandbox/httpd_filters/README (rev 0)
+++ sandbox/httpd_filters/README 2008-04-22 16:45:09 UTC (rev 1554)
@@ -0,0 +1,12 @@
+To use the filters.
+sh buildconf
+./configure --with-apache=$HOME/APACHE
+make
+and copy the *so in APACHE installation:
+cp *.so $HOME/APACHE/modules
+add in conf/httpd.conf something like:
++++
+LoadModule httpd_filter_module modules/cookie_filter.so
+SetOutputFilter COOKIE_FILTER_OUT
+SetInputFilter COOKIE_FILTER_IN
++++
Modified: sandbox/httpd_filters/cookie_filter.c
===================================================================
--- sandbox/httpd_filters/cookie_filter.c 2008-04-22 15:39:37 UTC (rev 1553)
+++ sandbox/httpd_filters/cookie_filter.c 2008-04-22 16:45:09 UTC (rev 1554)
@@ -60,9 +60,9 @@
static void register_hooks(apr_pool_t *p)
{
ap_register_output_filter("COOKIE_FILTER_OUT", out_filter, NULL,
- AP_FTYPE_CONTENT_SET);
+ AP_FTYPE_PROTOCOL);
ap_register_input_filter("COOKIE_FILTER_IN", in_filter, NULL,
- AP_FTYPE_CONTENT_SET);
+ AP_FTYPE_PROTOCOL);
}
static void *create_filter_module_config(apr_pool_t *p, server_rec *s)
{
Show replies by date