diff --git a/lib/download.c b/lib/download.c index d9fe30c40ac4939f2c8c3072dc989998a9638f8b..d8c56b185cc21d6b4ae3741a86d4efdb73507279 100644 --- a/lib/download.c +++ b/lib/download.c @@ -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 */