aboutsummaryrefslogtreecommitdiff
path: root/src/phorkie/File.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/phorkie/File.php')
-rw-r--r--src/phorkie/File.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/phorkie/File.php b/src/phorkie/File.php
index 63d23e6..dc90d9b 100644
--- a/src/phorkie/File.php
+++ b/src/phorkie/File.php
@@ -165,7 +165,9 @@ class File
$type = $GLOBALS['phorkie']['languages'][$ext]['mime'];
return substr($type, 0, 5) === 'text/'
- || $type == 'application/javascript';
+ || $type == 'application/javascript'
+ || substr($type, -4) == '+xml'
+ || substr($type, -5) == '+json';
}
}