This commit is contained in:
2021-09-06 17:33:05 +08:00
parent fff8e37e4e
commit 730b840409
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ class Http extends \Server\Abstracts\Http implements OnClose, OnConnect
$responseData = Help::toXml($responseData);
}
if (is_array($responseData)) {
$interface->stream->write(json_encode($responseData, JSON_UNESCAPED_UNICODE));
$interface->stream->write(json_encode($responseData));
} else {
$interface->stream->write((string)$responseData);
}