diff options
-rw-r--r-- | lib/download.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/download.c b/lib/download.c index d9fe30c40..d8c56b185 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 */ |