Skip to content

Commit 4225456

Browse files
authored
Fix discarding payload with post request method
1 parent d9732a2 commit 4225456

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class App {
77
public static function get_request()
88
{
99
$request = !empty($_POST) ? $_POST : array();
10-
$request = empty($_POST) && !empty($_GET) ? $_GET : array();
10+
$request = empty($_POST) && !empty($_GET) ? $_GET : $request;
1111

1212
return isset($_SERVER['CONTENT_TYPE']) && $_SERVER['CONTENT_TYPE'] == 'application/json'
1313
? json_decode(file_get_contents('php://input'), true)

0 commit comments

Comments
 (0)