[Klone-users] Bug Content-type

Stefano Barbato barbato at koanlogic.com
Mon Oct 20 05:28:05 EDT 2008


Hi,

You're right, thanks.

s

On 20/ott/08, at 10:43, Mickael Auger wrote:

> Hi,
>
> My project contains two static pages :
> - image.gif
> - image.GIF
>
> If I get "image.gif" the "Content-type" field is "image/gif",
> But if I get "image.GIF" the "Content-type" field is "application/ 
> octet-stream".
>
> I see the "libutils/utils.c" source and the "u_guess_mime_type"  
> function and I think that the test at line 1081 :
> ==========================
> if(strcmp(mm->ext, ext) == 0)
> ==========================
>
> would be replace by
> ==========================
> if(strcasecmp(mm->ext, ext) == 0)
> ==========================
>
> What do you think?
>
> -- 
> Mickaël AUGER
>
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users




More information about the Klone-users mailing list