getbible / Unbound-Biola

Please do not use, Since some of the Scripture Text has errors!!! USE https://github.com/getbible/v2 instead.
Other
59 stars 22 forks source link

Add application/json Header #1

Closed SergejKasper closed 9 years ago

SergejKasper commented 9 years ago

Hi,

Thank you for creating the GetBible API! I want to use it for a project in Apologetics, but can't retrieve the data with JSONP as the content-type seems to be text/html (http://stackoverflow.com/questions/3467404/chrome-says-resource-interpreted-as-script-but-transferred-with-mime-type-text). Could you please set it to "Content-Type: application/x-javascript" if that's the case?

God bless you! Sergej

Llewellynvdm commented 9 years ago

Hi, You started an issue in the scripture department, so to answer your question seems out of place. But just for your peace of mind, please look at the following document: https://github.com/getbible/Joomla-3-Component/blob/master/site/views/json/tmpl/default.php#L15 You will see on line 15 the mime encoding is set to application/json would you say application/x-javascript should be used instead? I would ask that we move this chat to the correct area. So please open a issue at https://github.com/getbible/Joomla-3-Component/issues

Llewellynvdm commented 5 years ago

Amazing news, have a look at https://github.com/getbible/v1#getbible-api-v1 the new easy expansion of the getBible API