mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
aquatic_http: EstablishedConnection.send_response: fix small bug
This commit is contained in:
parent
43a33d80c4
commit
da4ba14b47
1 changed files with 2 additions and 2 deletions
|
|
@ -110,11 +110,11 @@ impl EstablishedConnection {
|
|||
|
||||
let bytes_written = self.stream.write(&response)?;
|
||||
|
||||
if bytes_written != body.len(){
|
||||
if bytes_written != response.len(){
|
||||
::log::error!(
|
||||
"send_response: only {} out of {} bytes written",
|
||||
bytes_written,
|
||||
body.len()
|
||||
response.len()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue