set default message for CertificateRequest status code

This commit is contained in:
yggverse 2024-11-21 23:07:04 +02:00
parent 8414d44cdf
commit 5d8c036957

View File

@ -887,7 +887,7 @@ impl Page {
None => match response.status() { None => match response.status() {
gemini::client::response::meta::Status::CertificateUnauthorized => Some("Certificate not authorized"), gemini::client::response::meta::Status::CertificateUnauthorized => Some("Certificate not authorized"),
gemini::client::response::meta::Status::CertificateInvalid => Some("Certificate not valid"), gemini::client::response::meta::Status::CertificateInvalid => Some("Certificate not valid"),
_ => None _ => Some("Client certificate required")
}, },
}); });