From ba4d790c2c77600dba00ab80da9cf928ed57d2c7 Mon Sep 17 00:00:00 2001 From: whwyy Date: Thu, 21 Dec 2023 12:28:29 +0800 Subject: [PATCH] eee --- src/Format/MixedFormat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Format/MixedFormat.php b/src/Format/MixedFormat.php index 6026e91..3101929 100644 --- a/src/Format/MixedFormat.php +++ b/src/Format/MixedFormat.php @@ -30,7 +30,7 @@ class MixedFormat implements IFormat return $this->response->withBody(new Stream('[object]')); } if (is_array($result)) { - return $this->response->withContentType(ContentType::JSON)->withBody(new Stream(json_encode($result, JSON_UNESCAPED_UNICODE))); + return $this->response->withBody(new Stream(json_encode($result, JSON_UNESCAPED_UNICODE))); } else { return $this->response->withBody(new Stream((string)$result)); }