mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-05 09:23:40 -04:00
Minor changes.
This commit is contained in:
parent
b6b84a541b
commit
34e6c2c381
3 changed files with 8 additions and 5 deletions
|
@ -22,7 +22,7 @@ class Bootstrap {
|
|||
$this->setup_server();
|
||||
$this->setup_paths();
|
||||
$this->setup_cache();
|
||||
$this->setup_ext_cmds();
|
||||
$this->setup_cmds();
|
||||
|
||||
$app = new App();
|
||||
if (Util::is_post_request()) {
|
||||
|
@ -123,7 +123,7 @@ class Bootstrap {
|
|||
define("HAS_WRITABLE_CACHE", @is_writable(CACHE_PATH));
|
||||
}
|
||||
|
||||
private function setup_ext_cmds() {
|
||||
private function setup_cmds() {
|
||||
|
||||
define("CMDS_PATH", Util::normalize_path(CACHE_PATH . "/cmds.json", false));
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ class Util {
|
|||
|
||||
public static function is_post_request() {
|
||||
|
||||
return (strtolower($_SERVER["REQUEST_METHOD"]) === "post");
|
||||
return (strtolower(getenv("REQUEST_METHOD")) === "post");
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue