Fixed replace argument on header() not being set to false.

This commit is contained in:
flash 2025-03-25 18:53:17 +00:00
parent 0f3501acc6
commit 60c2130182
Signed by: flash
GPG key ID: 2C9C2C574D47FE3E
2 changed files with 3 additions and 3 deletions
VERSION
src/Http/Routing

View file

@ -1 +1 @@
0.2503.251417
0.2503.251852

View file

@ -1,7 +1,7 @@
<?php
// Router.php
// Created: 2024-03-28
// Updated: 2025-03-23
// Updated: 2025-03-25
namespace Index\Http\Routing;
@ -405,7 +405,7 @@ class Router implements RequestHandlerInterface {
foreach($response->getHeaders() as $name => $lines)
foreach($lines as $line)
header(sprintf('%s: %s', $name, $line));
header(sprintf('%s: %s', $name, $line), false);
$stream = $response->getBody();
if($stream->isReadable())