mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_http: fix clippy error, or at least log possible error
This commit is contained in:
parent
b65297195a
commit
c53c3928ab
1 changed files with 10 additions and 1 deletions
|
|
@ -108,7 +108,16 @@ impl EstablishedConnection {
|
|||
response.extend_from_slice(body);
|
||||
response.extend_from_slice(b"\r\n");
|
||||
|
||||
self.stream.write(&response)?;
|
||||
let bytes_written = self.stream.write(&response)?;
|
||||
|
||||
if bytes_written != body.len(){
|
||||
::log::error!(
|
||||
"send_response: only {} out of {} bytes written",
|
||||
bytes_written,
|
||||
body.len()
|
||||
);
|
||||
}
|
||||
|
||||
self.stream.flush()?;
|
||||
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue