diff --git a/http-server/Service/Http.php b/http-server/Service/Http.php index feb7e6ad..2b20c723 100644 --- a/http-server/Service/Http.php +++ b/http-server/Service/Http.php @@ -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); }