mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 00:25:35 +08:00
fix a bug
This commit is contained in:
@@ -162,8 +162,12 @@ class Response
|
|||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function end($content = null) {
|
public function end($content = null) {
|
||||||
$this->is_end = true;
|
if(!$this->is_end) {
|
||||||
return $this->response->end($content);
|
$this->is_end = true;
|
||||||
|
return $this->response->end($content);
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isEnd() { return $this->is_end; }
|
public function isEnd() { return $this->is_end; }
|
||||||
|
|||||||
Reference in New Issue
Block a user