aquatic_http: debug-log responses in full

This commit is contained in:
Joakim Frostegård 2020-08-16 21:15:05 +02:00
parent 25abadb39f
commit b5452c2954

View file

@ -339,7 +339,11 @@ pub fn send_responses(
match established.send_response(&buffer.get_mut()[..bytes_written]){
Ok(()) => {
debug!("sent response");
::log::debug!(
"sent response: {:?} with response string {}",
response,
String::from_utf8_lossy(&buffer.get_ref()[..bytes_written])
);
if !config.network.keep_alive {
remove_connection(poll, connections, &meta.poll_token);