feat: add "save as file" checkbox

This commit is contained in:
Rekryt
2024-10-28 13:56:09 +03:00
parent 198e13d788
commit 2e722a9ac9
3 changed files with 13 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ abstract class AbstractController implements ControllerInterface {
abstract public function getBody(): string;
public function setHeaders(array $headers): AbstractController {
$this->headers = $headers;
$this->headers = array_merge($this->headers ?? [], $headers);
return $this;
}