From 35a4672340a505d5481f5949e1bdef16011472fc Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Wed, 28 Aug 2024 19:22:57 +0400 Subject: [PATCH] fix(?): call flush() after writing, just in case --- src/client/mod.rs | 1 + 1 file changed, 1 insertion(+) 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