Commit 94fa47e0 authored by Philip_Clarke's avatar Philip_Clarke Committed by bgm

Issue #1219484 by sitiveni, rares, Philip_Clarke, jamix, steven.wichers: Types...

Issue #1219484 by sitiveni, rares, Philip_Clarke, jamix, steven.wichers: Types application/xml and application/json not supported (support for services module)
parent 7e2db021
......@@ -1190,7 +1190,32 @@ function boost_boost_storage_types() {
'application/rss+xml',
),
);
// #1219484
$types['text/javascript'] = array(
'title' => t('text/javascript'),
'description' => t('Javascript output, usually a response to a AJAX request'),
'extension' => 'js',
'enabled' => FALSE,
'gzip' => TRUE,
'lifetime_max' => 3600,
'lifetime_min' => 0,
'comment_start' => '/* ',
'comment_end' => ' */',
'variants' => array(),
);
$types['application/javascript'] = array(
'title' => t('AJAX/JavaScript'),
'description' => t('Javascript output, usually a response to a AJAX request'),
'extension' => 'json',
'enabled' => FALSE,
'gzip' => TRUE,
'lifetime_max' => 3600,
'lifetime_min' => 0,
'comment_start' => '',
'comment_end' => '',
'variants' => array(),
);
$types['application/json'] = array(
'title' => t('AJAX/JSON'),
'description' => t('JSON output, usually a response to a AJAX request'),
'extension' => 'json',
......@@ -1198,10 +1223,11 @@ function boost_boost_storage_types() {
'gzip' => TRUE,
'lifetime_max' => 3600,
'lifetime_min' => 0,
'comment_start' => '/* ',
'comment_end' => ' */',
'comment_start' => '',
'comment_end' => '',
'variants' => array(),
);
return $types;
}
......
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