We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16c56cc commit 2f0a524Copy full SHA for 2f0a524
src/Context.php
@@ -92,6 +92,6 @@ public function filter(string $name): ?string
92
*/
93
public function getBody(): ?array
94
{
95
- return json_decode($this->request->getBody()->getContents(), true);
+ return $this->request->getParsedBody() ?: json_decode($this->request->getBody()->getContents(), true);
96
}
97
src/Extension/Atomic.php
@@ -50,7 +50,7 @@ public function handle(Context $context): ?Response
50
throw new MethodNotAllowedException();
51
52
53
- $body = $request->getParsedBody();
+ $body = $context->getBody();
54
$operations = $body['atomic:operations'] ?? null;
55
56
if (! is_array($operations)) {
0 commit comments