Better function isPost

Use $_SERVER['REQUEST_METHOD'] instead of empty($_POST)
Possibly related to #413
pull/426/head
Marien Fressinaud 11 years ago
parent 483513c30f
commit 9f6fa5f7c6
  1. 2
      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';
}
}

Loading…
Cancel
Save