diff --git a/src/_h5ai/conf/options.json b/src/_h5ai/conf/options.json index 71405d05..c5079066 100644 --- a/src/_h5ai/conf/options.json +++ b/src/_h5ai/conf/options.json @@ -44,7 +44,7 @@ Options "indexFiles": ["index.html", "index.htm", "index.php"], "ignore": ["^\\.", "^_{{pkg.name}}"], "smartBrowsing": true, - "extInNewWindow": true + "extInNewWindow": false }, @@ -180,7 +180,7 @@ Options 2: mode, servername and -version */ "mode": { - "enabled": true, + "enabled": false, "display": 2 }, diff --git a/src/_h5ai/server/php/inc/Api.php b/src/_h5ai/server/php/inc/Api.php index 6968a14c..518a4702 100644 --- a/src/_h5ai/server/php/inc/Api.php +++ b/src/_h5ai/server/php/inc/Api.php @@ -207,6 +207,8 @@ class Api { json_exit(); } + + json_fail(100, "unsupported request"); } } diff --git a/src/_h5ai/server/php/index.php b/src/_h5ai/server/php/index.php index 50916f7d..967d49b1 100644 --- a/src/_h5ai/server/php/index.php +++ b/src/_h5ai/server/php/index.php @@ -53,8 +53,6 @@ if (array_key_exists("action", $_REQUEST)) { $api = new Api($app); $api->apply(); - json_fail(100, "unsupported request"); - } else { header("Content-type: text/html;charset=utf-8");