mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix missing brace
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user