File tree 2 files changed +2
-2
lines changed 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ async fn client_upgrade_request(addr: SocketAddr) -> Result<()> {
95
95
. unwrap ( ) ;
96
96
97
97
let stream = TcpStream :: connect ( addr) . await ?;
98
- let ( mut sender, conn) = hyper:: client:: conn:: http2 :: handshake ( stream) . await ?;
98
+ let ( mut sender, conn) = hyper:: client:: conn:: http1 :: handshake ( stream) . await ?;
99
99
100
100
tokio:: task:: spawn ( async move {
101
101
if let Err ( err) = conn. await {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ async fn client_request_response() -> Result<Response<Body>> {
29
29
let port = req. uri ( ) . port_u16 ( ) . expect ( "uri has no port" ) ;
30
30
let stream = TcpStream :: connect ( format ! ( "{}:{}" , host, port) ) . await ?;
31
31
32
- let ( mut sender, conn) = hyper:: client:: conn:: http2 :: handshake ( stream) . await ?;
32
+ let ( mut sender, conn) = hyper:: client:: conn:: http1 :: handshake ( stream) . await ?;
33
33
34
34
tokio:: task:: spawn ( async move {
35
35
if let Err ( err) = conn. await {
You can’t perform that action at this time.
0 commit comments