From acea95a02563b85f67903ab20ff1666ea42b70d1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 13 Jul 2015 14:07:08 +0000 Subject: [PATCH] -record response length in log --- src/microhttpd/connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index b38ced6f..9b02db0c 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c @@ -2146,7 +2146,8 @@ MHD_connection_handle_write (struct MHD_Connection *connection) #if DEBUG_SEND_DATA if (ret > 0) fprintf (stderr, - "Sent DATA response: `%.*s'\n", + "Sent %d-byte DATA response: `%.*s'\n", + (int) ret, (int) ret, &response->data[connection->response_write_position - response->data_start]);