mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
Updated Request::isPostBack to return true if request-method could contain data in body.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user