meghlal / timthumb

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

Incorrect Content-Type header set on JPEG images #199

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Run Timthumb on a JPEG image in Firefox with Firebug enabled (or Google 
Chrome with inspector)
2. Go to the 'Net' tab and view the response headers for the generated 
thumbnail.

What is the expected output? What do you see instead?

The expected output is that the image will have a Content-Type header of 
'image/jpeg', which is the correct mimetype for JPEG images (see first 
paragraph of section 4.2. in http://tools.ietf.org/html/rfc2046). Instead, 
'image/jpg' is set.

I've attached a copy of the source with this fixed. Although I haven't run any 
unit tests, this should work.

Original issue reported on code.google.com by rowan@rowanmanning.co.uk on 21 Jun 2011 at 8:55

Attachments:

GoogleCodeExporter commented 9 years ago
Correct!

I had "Resource interpreted as Image but transferred with MIME type image/jpg." 
errors inside Chrome inspector, too. It worked fine in Mozilla Firefox, only 
Chrome was complaining. Thanks for the fix.

Original comment by cip...@yahoo.com on 23 Jun 2011 at 9:41

GoogleCodeExporter commented 9 years ago

Original comment by BinaryMoon on 9 Jul 2011 at 8:29

GoogleCodeExporter commented 9 years ago
Is this issue still exist with chrome? If yes then please provide info for when 
it is expected to get fixed? Because I am facing same issue in chrome. 
please provide temp fix if available.

Original comment by forummar...@gmail.com on 2 Jun 2014 at 1:41