This commit is contained in:
2021-03-16 15:05:56 +08:00
parent d8dc14f5aa
commit fece44a852
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -280,7 +280,7 @@ class ActiveRecord extends BaseActiveRecord
/** /**
* @throws ComponentException * @throws Exception
*/ */
public function recover() public function recover()
{ {
+2 -1
View File
@@ -240,8 +240,9 @@ class Response extends HttpService
private function headers($sendData): string private function headers($sendData): string
{ {
if (!empty($this->headers) && is_array($this->headers)) { if (!empty($this->headers) && is_array($this->headers)) {
var_dump($this->headers);
foreach ($this->headers as $key => $header) { foreach ($this->headers as $key => $header) {
$this->response->header($key, $header); $this->response->header($key, $header, true);
} }
$this->headers = []; $this->headers = [];
} }