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;