Determining if a bucket is created by !--#include or !--#echo SSI directives
Apache Gurus: Is it possible to determine the origin of a bucket in a brigade? I have written a filter static apr_status_t mod_ssitag_content_filter(ap_filter_t *f, apr_bucket_brigade *bb) which needs to provide special processing of any bucket created from the #include directive via mod_include.Is there a way to tell when a bucket is created via #include? I want to exclude processing the bucket if it was created by the #echo directive.I can't tell if there is a difference in the bucket type when created by #include or #echo. Is there some other flag or way to differentiate these buckets? Thanks for your help! Travis
Re: Determining if a bucket is created by !--#include or !--#echo SSI directives
On Sat, Oct 30, 2010 at 00:24, Travis Bassetti drchong2000-apa...@yahoo.com wrote: #include directive via mod_include. Is there a way to tell when a bucket is created via #include? I want to exclude processing the bucket if it was created by the #echo directive. I can't tell if there is a difference in the bucket type when created by #include or #echo. Is there some other flag or way to differentiate these buckets? I don't think so. You could override the #echo directive with APR_RETRIEVE_OPTIONAL_FN(ap_register_include_handler) and tag the bucket in some way.