mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 10:45:30 +00:00
aquatic_http: debug-log responses in full
This commit is contained in:
parent
25abadb39f
commit
b5452c2954
1 changed files with 5 additions and 1 deletions
|
|
@ -339,7 +339,11 @@ pub fn send_responses(
|
||||||
|
|
||||||
match established.send_response(&buffer.get_mut()[..bytes_written]){
|
match established.send_response(&buffer.get_mut()[..bytes_written]){
|
||||||
Ok(()) => {
|
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 {
|
if !config.network.keep_alive {
|
||||||
remove_connection(poll, connections, &meta.poll_token);
|
remove_connection(poll, connections, &meta.poll_token);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue