1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

include the full size of the sent response in the log

This commit is contained in:
Daniel Stenberg 2004-04-30 05:51:37 +00:00
parent e99287734b
commit 15f9a93c25

View File

@ -519,6 +519,7 @@ static int send_doc(int sock, struct httprequest *req)
size_t cmdsize=0;
FILE *dump;
int persistant = TRUE;
size_t responsesize;
static char weare[256];
@ -613,6 +614,8 @@ static int send_doc(int sock, struct httprequest *req)
else
prevbounce = FALSE;
responsesize = count;
do {
written = swrite(sock, buffer, count);
if (written < 0) {
@ -628,7 +631,7 @@ static int send_doc(int sock, struct httprequest *req)
fclose(dump);
logmsg("Response sent!");
logmsg("Response sent (%d bytes)!", responsesize);
if(ptr)
free(ptr);