From 1a5d85ec8b107e28106c188ab7945e8df36f3171 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Wed, 17 Jan 2024 04:29:44 +0000 Subject: [PATCH] fix(tls): resolve http imports --- actix-tls/tests/test_connect.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-tls/tests/test_connect.rs b/actix-tls/tests/test_connect.rs index 58ffa4dbae..d3a6827641 100644 --- a/actix-tls/tests/test_connect.rs +++ b/actix-tls/tests/test_connect.rs @@ -109,7 +109,7 @@ async fn test_openssl_uri() { }); let connector = Connector::default().service(); - let addr = http::Uri::try_from(format!("https://localhost:{}", srv.port())).unwrap(); + let addr = http_0_2::Uri::try_from(format!("https://localhost:{}", srv.port())).unwrap(); let con = connector.call(addr.into()).await.unwrap(); assert_eq!(con.peer_addr().unwrap(), srv.addr()); } @@ -145,7 +145,7 @@ async fn test_rustls_uri() { }); let conn = Connector::default().service(); - let addr = http::Uri::try_from(format!("https://localhost:{}", srv.port())).unwrap(); + let addr = http_1::Uri::try_from(format!("https://localhost:{}", srv.port())).unwrap(); let con = conn.call(addr.into()).await.unwrap(); assert_eq!(con.peer_addr().unwrap(), srv.addr()); }