Updated Request::isPostBack to return true if request-method could contain data in body.

This commit is contained in:
Simon Sessingø
2021-03-28 23:32:33 +02:00
parent caf30cb056
commit 9ed2d2b8d1
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ class InputHandler
/* Parse post requests */
$this->originalPost = $_POST;
if (\in_array($this->request->getMethod(), Request::$requestTypesPost, false) === true) {
if ($this->request->isPostBack() === true) {
$contents = file_get_contents('php://input');