This commit is contained in:
2023-04-16 03:30:06 +08:00
parent d32768064a
commit b16348927a
4 changed files with 50 additions and 63 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ class Server implements OnRequestInterface
/** @var ConstrictResponse $PsrResponse */
$PsrResponse = Context::set(ResponseInterface::class, new ConstrictResponse());
$PsrResponse->withContentType($response->contentType)->withCookieParams($cookie);
$PsrResponse->withContentType($response->contentType);
$serverRequest = (new ConstrictRequest())->withDataHeaders($request->getData())
->withUri(Uri::parse($request))