[mod_python] AddOutputFilterByType not working

Sebastian Tusk sebastian.tusk at gmx.net
Thu Dec 19 20:15:12 EST 2002


The apache directive AddOutputFilterByType doesn't work for content 
generated by mod_python. The reason for this is the following line in 
requestobject.c

self->request_rec->content_type =
     apr_pstrdup(self->request_rec->pool, PyString_AsString(val));

which should read

ap_set_content_type(self->request_rec, PyString_AsString(val));


Sebastian




More information about the Mod_python mailing list