Преглед изворни кода

-record response length in log

Christian Grothoff пре 10 година
родитељ
комит
acea95a025
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/microhttpd/connection.c

+ 2 - 1
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]);