Skip to content

Commit e90a636

Browse files
committed
fix: always get input from current request instance
1 parent 2997abe commit e90a636

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/TaskHandler.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,7 @@ protected function validateToken($openIdToken)
7878
*/
7979
private function captureTask()
8080
{
81-
$input = file_get_contents('php://input');
82-
83-
if (!$input) {
84-
$input = request('input') ?: false;
85-
}
81+
$input = (string) (request()->getContent());
8682

8783
if (!$input) {
8884
throw new CloudTasksException('Could not read incoming task');

0 commit comments

Comments
 (0)