summaryrefslogtreecommitdiff
path: root/tests/raw-error.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/raw-error.php')
-rw-r--r--tests/raw-error.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/tests/raw-error.php b/tests/raw-error.php
index e8ca328b..3caf46c5 100644
--- a/tests/raw-error.php
+++ b/tests/raw-error.php
@@ -18,13 +18,4 @@ $psr7 = new RoadRunner\Http\PSR7Worker(
error_log('{"field": "value"}');
-while ($req = $psr7->waitRequest()) {
- try {
- $resp = new \Nyholm\Psr7\Response();
- $resp->getBody()->write("hello world");
-
- $psr7->respond($resp);
- } catch (\Throwable $e) {
- $psr7->getWorker()->error((string)$e);
- }
-} \ No newline at end of file
+while ($req = $psr7->waitRequest()) {}