]> sjero.net Git - wget/blobdiff - src/http.c
[svn] Backing out incomplete changes for bug 20323, until the full fix is
[wget] / src / http.c
index faeb0e7fd345cbe94826445e27f9fe18bff819f4..4813460f61baf36527a78083ddf36ea6e0c120eb 100644 (file)
@@ -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;