From 4b3fe0b6feac93655997fb4d1ea72a50c1c7db9d Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 1 Jan 2026 07:35:28 +0000 Subject: [PATCH] Fix missing brace --- .../Platform/Modules/Health/Http/Health/Certificate/Get.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Health/Http/Health/Certificate/Get.php b/src/Appwrite/Platform/Modules/Health/Http/Health/Certificate/Get.php index c2c33fe6df..f25666aa03 100644 --- a/src/Appwrite/Platform/Modules/Health/Http/Health/Certificate/Get.php +++ b/src/Appwrite/Platform/Modules/Health/Http/Health/Certificate/Get.php @@ -72,9 +72,9 @@ class Get extends Action $streamContextParams = stream_context_get_params($sslSocket); $peerCertificate = $streamContextParams['options']['ssl']['peer_certificate']; $certificatePayload = openssl_x509_parse($peerCertificate); - + fclose($sslSocket); // Close the socket to prevent resource leak - + if ($certificatePayload === false) { throw new Exception(Exception::HEALTH_INVALID_HOST); } @@ -94,4 +94,5 @@ class Get extends Action 'validTo' => $certificatePayload['validTo_time_t'], 'signatureTypeSN' => $certificatePayload['signatureTypeSN'] ?? '', ]), Response::MODEL_HEALTH_CERTIFICATE); + } }