diff --git a/HttpServer/Events/OnRequest.php b/HttpServer/Events/OnRequest.php index f41b1ba4..af2eec2e 100644 --- a/HttpServer/Events/OnRequest.php +++ b/HttpServer/Events/OnRequest.php @@ -48,6 +48,7 @@ class OnRequest extends Callback $params = $this->sendErrorMessage($sResponse ?? null, $exception, $response); } finally { unset($sResponse, $response); + Context::deleteId('response'); $events = Snowflake::app()->getEvent(); if (!$events->exists(Event::EVENT_AFTER_REQUEST)) { return;