From bca77522f7775ba02165fe67903de74bff1a75d7 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 8 Sep 2016 11:09:10 +0200 Subject: gzip compression for api.php aswell --- api.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'api.php') diff --git a/api.php b/api.php index 15b11881..fdccf14a 100644 --- a/api.php +++ b/api.php @@ -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); -- cgit v1.2.3-55-g7522