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
+2 -1
View File
@@ -240,8 +240,9 @@ class Response extends HttpService
private function headers($sendData): string
{
if (!empty($this->headers) && is_array($this->headers)) {
var_dump($this->headers);
foreach ($this->headers as $key => $header) {
$this->response->header($key, $header);
$this->response->header($key, $header, true);
}
$this->headers = [];
}