X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhttp.c;h=4813460f61baf36527a78083ddf36ea6e0c120eb;hp=faeb0e7fd345cbe94826445e27f9fe18bff819f4;hb=78aefb3bbf3afb0a3677419370ee197db389bfb7;hpb=0b2296c0d40b8b9c2adca7297dce781bfa397193 diff --git a/src/http.c b/src/http.c index faeb0e7f..4813460f 100644 --- a/src/http.c +++ b/src/http.c @@ -2342,7 +2342,8 @@ Spider mode enabled. Check if remote file exists.\n")); /* Default document type is empty. However, if spider mode is on or time-stamping is employed, HEAD_ONLY commands is encoded within *dt. */ - if (((opt.spider || opt.timestamping) && !got_head) || !got_name) + if (((opt.spider || opt.timestamping) && !got_head) + || (opt.always_rest && !got_name)) *dt |= HEAD_ONLY; else *dt &= ~HEAD_ONLY;