1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-28 12:10:37 +02:00

Add an error message if we receive a non-hostname-based dest

This is more helpful than an unwrap and at least points users at the right location.
Upstream issue is https://github.com/briansmith/webpki/issues/54
This commit is contained in:
Sven-Hendrik Haase
2019-10-04 07:30:13 +02:00
parent 2667850d60
commit f6f9e1fcdb
2 changed files with 3 additions and 1 deletions

View File

@ -42,6 +42,7 @@ fn test_rustls_string() {
let con = test::call_service(&mut conn, addr.into());
assert_eq!(con.peer_addr().unwrap(), srv.addr());
}
#[test]
fn test_static_str() {
let srv = TestServer::with(|| {