Sfoglia il codice sorgente

-record response length in log

Christian Grothoff 10 anni fa
parent
commit
acea95a025
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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 DEBUG_SEND_DATA
             if (ret > 0)
             if (ret > 0)
               fprintf (stderr,
               fprintf (stderr,
-                       "Sent DATA response: `%.*s'\n",
+                       "Sent %d-byte DATA response: `%.*s'\n",
+                       (int) ret,
                        (int) ret,
                        (int) ret,
                        &response->data[connection->response_write_position -
                        &response->data[connection->response_write_position -
                                        response->data_start]);
                                        response->data_start]);