This commit is contained in:
as2252258@163.com
2021-08-28 02:31:05 +08:00
parent b67f2a304f
commit 8da9cf58a4
+2 -1
View File
@@ -76,7 +76,8 @@ class Http extends \Server\Abstracts\Http implements OnClose, OnConnect
return $this->response->withBody(new Stream(json_encode($responseData, JSON_UNESCAPED_UNICODE)))
->withContentType(\Server\Message\Response::CONTENT_TYPE_JSON);
}
return $this->response->withBody(new Stream((string)$responseData));
return $this->response->withBody(new Stream((string)$responseData))
->withContentType(\Server\Message\Response::CONTENT_TYPE_HTML);
}