From 870220d15bd83ada95902af64dbd332579ee2aad Mon Sep 17 00:00:00 2001 From: Joanhey Date: Tue, 6 Aug 2024 22:59:22 +0200 Subject: [PATCH] Fix Http class to use Response headers as array --- src/Protocols/Http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocols/Http.php b/src/Protocols/Http.php index ef7355964..c528ee08b 100644 --- a/src/Protocols/Http.php +++ b/src/Protocols/Http.php @@ -248,7 +248,7 @@ public static function encode(mixed $response, TcpConnection $connection): strin } $handler = fopen($file, 'r'); if (false === $handler) { - $connection->close(new Response(403, null, '403 Forbidden')); + $connection->close(new Response(403, [], '403 Forbidden')); return ''; } $connection->send((string)$response, true);