summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgit2012-05-02 03:38:20 (GMT)
committerMathieu Lutfy2012-05-02 03:38:20 (GMT)
commit9cf27af8df4aa7fb3549f7a2f572f86950a07084 (patch)
tree35a6d3707ad737fba7322f34e3ae28652861671f
parenta58a11ac8d5bf6a0235e8ebf8e43a7b4cf8fe3bd (diff)
Issue #1219484 : better support for XML/Json generated by the services module6.x-1.206.x-1.19-beta1
-rw-r--r--boost.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/boost.module b/boost.module
index 703c32d..3709efd 100644
--- a/boost.module
+++ b/boost.module
@@ -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;
}