Skip to content

Commit

Permalink
Fix Http class to use Response headers as array
Browse files Browse the repository at this point in the history
  • Loading branch information
joanhey committed Aug 6, 2024
1 parent ba85d2d commit 870220d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Protocols/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 870220d

Please sign in to comment.