httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Holsman <i...@apache.org>
Subject Re: seg fault in core_filters_type
Date Tue, 26 Feb 2002 03:51:02 GMT
Bill Stoddard wrote:
> I added an AddOutputFilterByType INCLUDES .shtml to my httpd.conf file. Then started
> hitting this segfault because r->content_type is NULL.  I do not have an AddType for
> .shtml.  Any ideas on the best way to handle this w/o segfaulting?

I don't know why it is segfaulting..
but you need to use the mime/type
AddoutputfilerbyType INCLUDES text/html
I think

..Ian

> 
> 
>  ctypes = r->content_type;
> 
>     /* We must be able to handle decorated content-types.  */
>   while (*ctypes && (ctype = ap_getword(r->pool, &ctypes, ';'))) {
>       ap_filter_rec_t *ct_filter;
>       ct_filter = apr_hash_get(conf->ct_output_filters, ctype,
>                                APR_HASH_KEY_STRING);
>       while (ct_filter) {
>           ap_add_output_filter(ct_filter->name, NULL, r, r->connection);
>           ct_filter = ct_filter->next;
>       }
>   }
> 
> 




Mime
View raw message