On 05/10/2012 06:39 PM, Nick Kew wrote:
"This function must be called to set r->content_type in order for the
AddOutputFilterByType directive to work correctly.", so it may be
related to your problem.
Whoops! That's no longer true since AddOutputFilterByType moved
to mod_filter. Where do the docs still say that?
Well the docs probably don't mention it, but the header file still does:
http_protocol.h (for 2.4.x) says:
------------------------
/**
* Set the content type for this request (r->content_type).
* @param r The current request
* @param ct The new content type
* @warning This function must be called to set r->content_type in order
* for the AddOutputFilterByType directive to work correctly.
*/
AP_DECLARE(void) ap_set_content_type(request_rec *r, const char *ct);
------------------------
With regards,
Daniel.