From 0a5defaf29d3bbfb368fce1dbe224476e6a3553e Mon Sep 17 00:00:00 2001 From: jerry Date: Sat, 2 Jan 2021 19:44:19 +0800 Subject: [PATCH] fix a bug --- src/ZM/Http/Response.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; }