mirror of
https://github.com/greatest-ape/aquatic.git
synced 2026-10-23 01:41:20 +00:00
aquatic_http: EstablishedConnection.send_response: fix small bug
This commit is contained in:
1 parent
43a33d80c4
commit
da4ba14b47
1 file changed
+2
-2
@@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user