mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
* 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>
12 lines
212 B
PHP
12 lines
212 B
PHP
<?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();
|
|
};
|