diff --git a/HttpServer/Http/Response.php b/HttpServer/Http/Response.php index 34203858..f2ef17d8 100644 --- a/HttpServer/Http/Response.php +++ b/HttpServer/Http/Response.php @@ -184,6 +184,9 @@ class Response extends Application $this->response->header('Content-Type', $this->getContentType()); $this->response->header('Access-Control-Allow-Origin', '*'); $this->response->header('Run-Time', $this->getRuntime()); + if (empty($sendData)) { + $sendData = ''; + } $this->response->end($sendData); return $sendData; }