store the pretransfer time

store the http code
This commit is contained in:
Daniel Stenberg 2000-03-01 21:56:23 +00:00
parent 04e714562c
commit 4ff9f2b08e
1 changed files with 3 additions and 0 deletions

View File

@ -143,6 +143,8 @@ Transfer (struct UrlData *data,
#define KEEP_READ 1
#define KEEP_WRITE 2
pgrsTime(data, TIMER_PRETRANSFER);
if (!getheader) {
header = FALSE;
if(size > 0)
@ -341,6 +343,7 @@ Transfer (struct UrlData *data,
failf (data, "The requested file was not found");
return URG_HTTP_NOT_FOUND;
}
data->progress.httpcode = code;
}
else {
header = FALSE; /* this is not a header line */