diff --git a/HttpServer/Events/OnRequest.php b/HttpServer/Events/OnRequest.php index 5f16fdb9..f41b1ba4 100644 --- a/HttpServer/Events/OnRequest.php +++ b/HttpServer/Events/OnRequest.php @@ -47,6 +47,7 @@ class OnRequest extends Callback } catch (Error | \Throwable $exception) { $params = $this->sendErrorMessage($sResponse ?? null, $exception, $response); } finally { + unset($sResponse, $response); $events = Snowflake::app()->getEvent(); if (!$events->exists(Event::EVENT_AFTER_REQUEST)) { return;