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
+2 -2
View File
@@ -363,13 +363,13 @@ class Request
}
/**
* Returns true when request-type is post.
* Returns true when request-method is type that could contain data in the page body.
*
* @return bool
*/
public function isPostBack(): bool
{
return ($this->getMethod() === static::REQUEST_TYPE_POST);
return \in_array($this->getMethod(), static::$requestTypesPost, true);
}
/**