Skip to content

Commit 62696b0

Browse files
committed
Bug fixed on isAjax method.
1 parent 53b506b commit 62696b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Router/RouterRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ public static function validMethod($data, $method)
4747
protected static function checkMethods($value, $method)
4848
{
4949
$valid = false;
50-
if ($value === 'AJAX' && self::isAjax && $value === $method) {
50+
if ($value === 'AJAX' && self::isAjax() && $value === $method) {
5151
$valid = true;
52-
} elseif ($value === 'AJAXP' && self::isAjax && $method === 'POST') {
52+
} elseif ($value === 'AJAXP' && self::isAjax() && $method === 'POST') {
5353
$valid = true;
5454
} elseif (in_array($value, explode('|', self::$validMethods)) && ($value === $method || $value === 'ANY')) {
5555
$valid = true;

0 commit comments

Comments
 (0)