fix a bug

This commit is contained in:
jerry 2021-01-02 19:44:19 +08:00
parent 557efc47a8
commit 0a5defaf29

View File

@ -162,8 +162,12 @@ class Response
* @return mixed
*/
public function end($content = null) {
$this->is_end = true;
return $this->response->end($content);
if(!$this->is_end) {
$this->is_end = true;
return $this->response->end($content);
} else {
return false;
}
}
public function isEnd() { return $this->is_end; }