fix(?): call flush() after writing, just in case
This commit is contained in:
parent
cefac047ef
commit
35a4672340
1 changed files with 1 additions and 0 deletions
|
@ -118,6 +118,7 @@ impl Client {
|
||||||
// Write URL, then CRLF
|
// Write URL, then CRLF
|
||||||
stream.write_all(url_str.as_bytes()).await?;
|
stream.write_all(url_str.as_bytes()).await?;
|
||||||
stream.write_all(b"\r\n").await?;
|
stream.write_all(b"\r\n").await?;
|
||||||
|
stream.flush().await?;
|
||||||
|
|
||||||
let status = {
|
let status = {
|
||||||
let mut buf: [u8; 3] = [0, 0, 0]; // 2 digits, space
|
let mut buf: [u8; 3] = [0, 0, 0]; // 2 digits, space
|
||||||
|
|
Loading…
Add table
Reference in a new issue