Skip to content

Commit efbcd9d

Browse files
authored
Merge pull request #16 from hydephp/develop
Fix bug causing out of memory failures in exception handler
2 parents c231ac1 + 10cf497 commit efbcd9d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/server.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
$app->handle() // Process the request and create the response
1212
->send(); // Send the response to the client
1313
} catch (Throwable $exception) {
14-
\Hyde\RealtimeCompiler\Http\ExceptionHandler::handle($exception);
14+
\Hyde\RealtimeCompiler\Http\ExceptionHandler::handle($exception)->send();
1515
exit($exception->getCode());
1616
}
1717
} catch (\Throwable $th) {

src/Http/ExceptionHandler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ public static function handle(\Throwable $exception): Response
2424
'Content-Type' => 'text/html',
2525
'Content-Length' => strlen($html),
2626
'body' => $html,
27-
])->send();
27+
]);
2828
}
2929
}

0 commit comments

Comments
 (0)