mirror of
https://gitlab.com/gnuwget/wget2.git
synced 2025-08-20 16:24:12 +00:00
* src/wget.c: Let the user know if file is completely retrieved after a 416 HTTP error
This commit is contained in:
@ -1472,6 +1472,10 @@ static int process_response_header(wget_http_response_t *resp)
|
||||
return 1; // stop further processing
|
||||
}
|
||||
|
||||
if (resp->code == 416 && !resp->cur_downloaded) {
|
||||
info_printf(_("The file is already fully retrieved; nothing to do.\n"));
|
||||
}
|
||||
|
||||
// 304 Not Modified
|
||||
if (resp->code / 100 == 2 || resp->code / 100 >= 4 || resp->code == 304)
|
||||
return 0; // final response
|
||||
|
Reference in New Issue
Block a user