beat / tracker-apps

Joomla Apps* bugtracker
GNU General Public License v2.0
0 stars 0 forks source link

Mime-type of JSONP reply text/html #25

Closed beat closed 11 years ago

beat commented 11 years ago

This seems to not be a big issue for browsers, but we should still fix it:

Instead of text/html it should be "application/javascript" for JSONP as per rfc4329 and "application/json" for JSON reply (without the standard callback param) as per rfc4627.

http://appscdn.joomla.org/webapps/index.php?format=json&option=com_apps&view=dashboard&product=Sm9vbWxhIQ==&release=My4x&dev_level=Ng==&list=grid&callback=jedapps_jsonpcallback

returns text/html instead, which is the wrong MIME type.

Credits for report of this: Rouven Weßling.

emavro commented 11 years ago

Fixed with PR https://github.com/joomla-projects/joomla-cms/pull/230