diff options
| author | 2014-02-11 23:42:24 +0100 | |
|---|---|---|
| committer | 2014-02-11 23:42:24 +0100 | |
| commit | 9f6fa5f7c6e476aceb8a1979cd62f6fbf53b6757 (patch) | |
| tree | a822eb6a18a02416da78fb2ba4a1368f722f6fe2 | |
| parent | 483513c30ff2aa3a445d3a9e788332d7ce703d2b (diff) | |
Better function isPost
Use $_SERVER['REQUEST_METHOD'] instead of empty($_POST)
Possibly related to #413
| -rw-r--r-- | lib/Minz/Request.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php index d4e1355d7..282d47a77 100644 --- a/lib/Minz/Request.php +++ b/lib/Minz/Request.php @@ -199,6 +199,6 @@ class Minz_Request { } public static function isPost () { - return !empty ($_POST) || !empty ($_FILES); + return $_SERVER['REQUEST_METHOD'] === 'POST'; } } |
