From 016729178951b3033388541e973a94aeae15016f Mon Sep 17 00:00:00 2001 From: whwyy Date: Thu, 21 Dec 2023 12:29:14 +0800 Subject: [PATCH] eee --- src/Format/NoBody.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Format/NoBody.php b/src/Format/NoBody.php index 0da7f7f..869d18a 100644 --- a/src/Format/NoBody.php +++ b/src/Format/NoBody.php @@ -35,7 +35,7 @@ class NoBody 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)); }