Commit 9cf27af8 authored by git's avatar git Committed by bgm

Issue #1219484 : better support for XML/Json generated by the services module

parent a58a11ac
......@@ -760,12 +760,13 @@ function boost_exit($destination = NULL) {
$types = array_pop($types);
// Match extension
if (stristr($types, 'text/javascript')) {
if (stristr($types, 'text/javascript') || stristr($types, 'application/json')) {
$extension = BOOST_JSON_EXTENSION;
}
elseif ( stristr($types, 'application/rss')
|| stristr($types, 'text/xml')
|| stristr($types, 'application/rss+xml')
|| stristr($types, 'application/xml')
) {
$extension = BOOST_JSON_EXTENSION;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment