mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Fix missing brace
This commit is contained in:
parent
4ef906b836
commit
4b3fe0b6fe
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue