src/client/http_client.rs: always convert fingerprint to lowercase

This commit is contained in:
Dietmar Maurer 2020-02-11 11:37:24 +01:00
parent d1c657276a
commit 1bd6f32b43

View File

@ -385,7 +385,7 @@ impl HttpClient {
.collect::<Vec<&str>>().join(":"); .collect::<Vec<&str>>().join(":");
if let Some(expected_fingerprint) = expected_fingerprint { if let Some(expected_fingerprint) = expected_fingerprint {
if expected_fingerprint == fp_string { if expected_fingerprint.to_lowercase() == fp_string {
return (true, Some(fp_string)); return (true, Some(fp_string));
} else { } else {
return (false, None); return (false, None);