summaryrefslogtreecommitdiffstats
path: root/boost.module
diff options
context:
space:
mode:
Diffstat (limited to 'boost.module')
-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;
}