This commit is contained in:
2020-09-17 14:27:42 +08:00
parent 28a920841a
commit cc80e0ca31
+1 -1
View File
@@ -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);
}