* src/wget.c: Let the user know if file is completely retrieved after a 416 HTTP error

This commit is contained in:
DalmeGNU
2017-11-28 15:04:33 +00:00
committed by Tim Rühsen
parent ed4cfb2f75
commit 4d2dfb3685

View File

@ -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