X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhttp.c;h=7eef453f6ccca5cedb0bb6f59d7f9b81e75c4a97;hp=748b4e8142a99bf28eed6d3248fd89fb61b89241;hb=fce4e757a20230a44e6b4267d8e7386ffcaf6eef;hpb=2223ac8ce31ecd80112a023d0d56229bfc026b01 diff --git a/src/http.c b/src/http.c index 748b4e81..7eef453f 100644 --- a/src/http.c +++ b/src/http.c @@ -2451,7 +2451,7 @@ read_header: type = NULL; /* We don't need it any more. */ /* Return if we have no intention of further downloading. */ - if (!(*dt & RETROKF) || head_only) + if ((!(*dt & RETROKF) && !opt.content_on_error) || head_only) { /* In case the caller cares to look... */ hs->len = 0;