改名
This commit is contained in:
@@ -219,7 +219,11 @@ class Response extends HttpService
|
|||||||
$this->response->status($status);
|
$this->response->status($status);
|
||||||
$this->response->header('Content-Type', $this->getContentType());
|
$this->response->header('Content-Type', $this->getContentType());
|
||||||
$this->response->header('Run-Time', $this->getRuntime());
|
$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;
|
$this->response = null;
|
||||||
unset($this->response);
|
unset($this->response);
|
||||||
return $sendData;
|
return $sendData;
|
||||||
|
|||||||
Reference in New Issue
Block a user