From 4feecd49f4d173754ce9fd8a602c5da81429609a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 10 Sep 2021 14:03:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http-message/ServerRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http-message/ServerRequest.php b/http-message/ServerRequest.php index af420ad6..7fd37c5d 100644 --- a/http-message/ServerRequest.php +++ b/http-message/ServerRequest.php @@ -72,7 +72,7 @@ class ServerRequest extends Request implements ServerRequestInterface ->withServerTarget($request) ->withCookieParams($request->cookie) ->withUri(Uri::parseUri($request)) - ->withBody(new Stream('')) + ->withBody(new Stream($request->getContent())) ->withQueryParams($request->get ?? []) ->withUploadedFiles($request->files ?? []) ->withMethod($request->getMethod())