From cc80e0ca316fbaa6fe75c23bb23907688ef734d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 17 Sep 2020 14:27:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Http/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Http/Response.php b/HttpServer/Http/Response.php index 207e0e12..fedef0e7 100644 --- a/HttpServer/Http/Response.php +++ b/HttpServer/Http/Response.php @@ -183,7 +183,7 @@ class Response extends Application $this->response->status($status); $this->response->header('Content-Type', $this->getContentType()); $this->response->header('Run-Time', $this->getRuntime()); - if (!empty($this->headers)) { + if (!empty($this->headers) && is_array($this->headers)) { foreach ($this->headers as $key => $header) { $this->response->header($key, $header); }