diff --git a/http-message/ServerRequest.php b/http-message/ServerRequest.php index e3af48b8..590e56dd 100644 --- a/http-message/ServerRequest.php +++ b/http-message/ServerRequest.php @@ -147,7 +147,7 @@ class ServerRequest extends Request implements ServerRequestInterface if (empty($this->parsedBody)) { $callback = Context::getContext('with.parsed.body.callback'); - $this->parsedBody = $callback($this->getBody()); + $this->parsedBody = $callback($this->getBody(), $this->serverTarget->post); } return $this->parsedBody; }