This commit is contained in:
2021-03-09 17:18:03 +08:00
parent 411419273c
commit 5c3fd34dc0
+5 -1
View File
@@ -219,7 +219,11 @@ class Response extends HttpService
$this->response->status($status);
$this->response->header('Content-Type', $this->getContentType());
$this->response->header('Run-Time', $this->getRuntime());
$this->response->end($this->headers($sendData));
if (!empty($sendData)) {
$this->response->end($this->headers($sendData));
} else {
$this->response->end();
}
$this->response = null;
unset($this->response);
return $sendData;