diff --git a/src/ZM/Http/Response.php b/src/ZM/Http/Response.php index 89e65d89..31686d06 100644 --- a/src/ZM/Http/Response.php +++ b/src/ZM/Http/Response.php @@ -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; }