Commit 4ff9f2b0 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

store the pretransfer time

store the http code
parent 04e71456
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 */