diff --git a/HttpServer/Http/Response.php b/HttpServer/Http/Response.php index 2c5f871e..8c1f6b13 100644 --- a/HttpServer/Http/Response.php +++ b/HttpServer/Http/Response.php @@ -276,9 +276,8 @@ class Response extends HttpService */ public static function create($response = null): static { + Context::setContext('response', $response); $ciResponse = Snowflake::getDi()->get(Response::class); - Context::setContext('response', $ciResponse); - $ciResponse->response = $response; $ciResponse->startTime = microtime(true); $ciResponse->format = self::JSON; return $ciResponse;