[Klone-users] Bug Content-type

Mickael Auger mickael.auger at gmail.com
Mon Oct 20 04:43:55 EDT 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://koanlogic.com/pipermail/klone-users/attachments/20081020/c746babd/attachment.html


More information about the klone-users mailing list