mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
fix: headers before flushing (#1622)
* add tests * fix test * attempt to send headers when flushing * Update testdata/only-headers.php Co-authored-by: Kévin Dunglas <kevin@dunglas.fr> --------- Co-authored-by: Kévin Dunglas <kevin@dunglas.fr>
This commit is contained in:
11
testdata/only-headers.php
vendored
Normal file
11
testdata/only-headers.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__.'/_executor.php';
|
||||
|
||||
return function () {
|
||||
header('Content-Type: application/json');
|
||||
header('HTTP/1.1 204 No Content', true, 204);
|
||||
|
||||
echo '{"status": "test"}';
|
||||
flush();
|
||||
};
|
||||
Reference in New Issue
Block a user