diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-07-13 14:07:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-07-13 14:07:08 +0000 |
commit | acea95a02563b85f67903ab20ff1666ea42b70d1 (patch) | |
tree | eb6fb847d2fc4636a5e6c90ce698328b9e11500c /src | |
parent | 1b51979b0ba7c01e445db18cc613327849374392 (diff) | |
download | libmicrohttpd-acea95a02563b85f67903ab20ff1666ea42b70d1.tar.gz libmicrohttpd-acea95a02563b85f67903ab20ff1666ea42b70d1.zip |
-record response length in log
Diffstat (limited to 'src')
-rw-r--r-- | src/microhttpd/connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
2146 | #if DEBUG_SEND_DATA | 2146 | #if DEBUG_SEND_DATA |
2147 | if (ret > 0) | 2147 | if (ret > 0) |
2148 | fprintf (stderr, | 2148 | fprintf (stderr, |
2149 | "Sent DATA response: `%.*s'\n", | 2149 | "Sent %d-byte DATA response: `%.*s'\n", |
2150 | (int) ret, | ||
2150 | (int) ret, | 2151 | (int) ret, |
2151 | &response->data[connection->response_write_position - | 2152 | &response->data[connection->response_write_position - |
2152 | response->data_start]); | 2153 | response->data_start]); |