llocally / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

Wrong Content-type header #233

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi!

Please compare headers of these two images
http://www.binarymoon.co.uk/demo/timthumb-basic/timthumb.php?src=castle1.jpg
AND
http://cdn.binarymoon.co.uk/wp-content/themes/moonshine_vIII/images/bm_logo.png

The first one was generated by timthumb script. 
The 'content-type' is
---------------------------
Content-Type    jpg
---------------------------

But the 'Content-type' of second image is
-----------------------------
Content-Type    image/png
----------------------------

The 'Content-Type jpg' is not valid 'Content-Type'. It should be 
'Content-Type   image/jpg'

IE and Safary doesn't display image in that case. They are showing download 
dialog instead.

I am on 2.7 version.

Thanks!

Original issue reported on code.google.com by elgato.a...@gmail.com on 15 Aug 2011 at 5:10

GoogleCodeExporter commented 9 years ago
Thanks, nice catch! It's fixed in the newest version.

Original comment by mmaun...@gmail.com on 15 Aug 2011 at 7:49