This commit is contained in:
2023-12-21 12:29:14 +08:00
parent ba4d790c2c
commit 0167291789
+1 -1
View File
@@ -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));
}