diff options
author | Simon Rettberg | 2016-09-08 11:09:10 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-09-08 11:09:10 +0200 |
commit | bca77522f7775ba02165fe67903de74bff1a75d7 (patch) | |
tree | 6353de20dbec99dd2da3021642afb940cc850cdf | |
parent | [roomplanner] Fix key constraint error on room saving (diff) | |
download | slx-admin-bca77522f7775ba02165fe67903de74bff1a75d7.tar.gz slx-admin-bca77522f7775ba02165fe67903de74bff1a75d7.tar.xz slx-admin-bca77522f7775ba02165fe67903de74bff1a75d7.zip |
gzip compression for api.php aswell
-rw-r--r-- | api.php | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -29,8 +29,7 @@ if (!empty($_REQUEST['do'])) { } elseif (!empty($argv[1])) { $module = preg_replace('/[^a-z]/', '', $argv[1]); } else { - // No specific module - set default - $module = 'main'; + exit(1); } Module::init(); @@ -45,7 +44,7 @@ if (!file_exists($module)) { } Header('Content-Type: text/plain; charset=utf-8'); - +ob_start('ob_gzhandler'); // Load module - it will execute pre-processing, or act upon request parameters require_once($module); |