aquatic_http: EstablishedConnection.send_response: fix small bug

This commit is contained in:
Joakim Frostegård 2020-07-08 12:28:46 +02:00
parent 43a33d80c4
commit da4ba14b47

View file

@ -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()
);
}