mod_layout and dynamic images
Ci <[email protected]> Tue, 8 May 2007 12:47:59 +0200
| Newsgroups | gmane.comp.apache.mod-layout |
|---|---|
| Message-ID | <[email protected]> |
Hello,
On Apr 30, 2007, at 12:26 AM, Aaz wrote:
> Seems that the following code fixes the problem. It should be added to
> layout_filter function.
>
> if (strstr(r->content_type,"image")!= NULL) {
> return ap_pass_brigade(f->next, b);
> };
I solved it in that way:
if ((strncmp("image/", r->content_type, 6) == 0) ||
(strncmp("application/", r->content_type, 12) == 0) ||
(strncmp("text/css", r->content_type, 8) == 0) ||
(strncmp("audio/", r->content_type, 6) == 0) ||
(strncmp("video/", r->content_type, 6) == 0)
){
return ap_pass_brigade(f->next, b);
}
Regards,
Kamil 'Ci' Grzebien