Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
KirsanKifat committed Oct 16, 2021
1 parent a01fdb9 commit a32245f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Extractor/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ public function extractData(Request $request, string $format)
return array_merge($this->converter->convert($request->query->all()), $request->files->all() + $request->request->all());
}

return array_merge($this->converter->convert($request->query->all()), $request->getContent());
$response = array_merge($this->converter->convert($request->query->all()), json_decode($request->getContent(),1));

return json_encode($response);
}

/**
Expand Down

0 comments on commit a32245f

Please sign in to comment.