fix(?): call flush() after writing, just in case

This commit is contained in:
DarkCat09 2024-08-28 19:22:57 +04:00
parent cefac047ef
commit 35a4672340
Signed by: DarkCat09
GPG key ID: BD3CE9B65916CD82

View file

@ -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