1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 22:49:21 +02:00

Fix body propagation in Response::from_error. #760

This commit is contained in:
Nikolay Kim
2019-04-10 12:43:31 -07:00
parent 9bb40c249f
commit 9d82d4dfb9
10 changed files with 92 additions and 27 deletions

View File

@ -107,7 +107,7 @@ impl TestServer {
TestServerRuntime { addr, rt, client }
}
/// Get firat available unused address
/// Get first available unused address
pub fn unused_addr() -> net::SocketAddr {
let addr: net::SocketAddr = "127.0.0.1:0".parse().unwrap();
let socket = TcpBuilder::new_v4().unwrap();