Files
frankenphp/testdata/only-headers.php
Rob Landers a59b649dac 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>
2025-06-01 14:58:36 +02:00

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();
};