Skip to content

Commit 2ea7106

Browse files
tobiasdierichandig
authored andcommitted
Manually set request prop of illuminate request when using json content type (#137)
1 parent 34327ed commit 2ea7106

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Bridges/HttpKernel.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ protected function mapRequest(ServerRequestInterface $psrRequest)
187187

188188
$syRequest->setMethod($method);
189189

190+
if ($syRequest instanceof \Illuminate\Http\Request && $syRequest->isJson()) {
191+
$syRequest->request = $syRequest->json();
192+
}
193+
190194
return $syRequest;
191195
}
192196

0 commit comments

Comments
 (0)