diff --git a/src/client/mod.rs b/src/client/mod.rs index a6c358b..7612610 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -118,6 +118,7 @@ impl Client { // Write URL, then CRLF stream.write_all(url_str.as_bytes()).await?; stream.write_all(b"\r\n").await?; + stream.flush().await?; let status = { let mut buf: [u8; 3] = [0, 0, 0]; // 2 digits, space