From d0cecaddb61dc83e42778da838ef0dd7305fdc28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 27 Jul 2021 17:04:44 +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 --- HttpServer/Http/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Http/Response.php b/HttpServer/Http/Response.php index 42a6c5a6..8c9aa808 100644 --- a/HttpServer/Http/Response.php +++ b/HttpServer/Http/Response.php @@ -181,7 +181,7 @@ class Response extends HttpService */ private function parseData($context): mixed { - if (!empty($context) && !is_string($context)) { + if (!empty($context)) { /** @var IFormatter $class */ $class = $this->_format_maps[$this->format] ?? HtmlFormatter::class;