remove the Option from local_addr, replace unwrap()

This commit is contained in:
Devrim Şahin
2023-04-21 12:37:16 +03:00
committed by Martin Algesten
parent c305b915f8
commit cd70959360
2 changed files with 7 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ impl<T: AsRef<[u8]> + Send + Sync + 'static> From<http::Response<T>> for Respons
.collect::<Vec<_>>(),
reader: Box::new(Cursor::new(value.into_body())),
remote_addr: SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 80),
local_addr: None,
local_addr: SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 0),
history: vec![],
}
}