mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +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(body);
|
||||||
response.extend_from_slice(b"\r\n");
|
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()?;
|
self.stream.flush()?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue