diff --git a/src/ChangeLog b/src/ChangeLog index 951af394..aa9e01b4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-07-04 Mauro Tortonesi + + * http.c (http_loop): Skip HEAD request and start immediately with GET + if -O is given. + 2007-02-02 Hrvoje Niksic * http.c (print_server_response): Escape non-printable characters diff --git a/src/http.c b/src/http.c index 1ec42d28..0ff82096 100644 --- a/src/http.c +++ b/src/http.c @@ -2343,8 +2343,7 @@ 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) - || (opt.always_rest && !got_name)) + if (((opt.spider || opt.timestamping) && !got_head) || !got_name) *dt |= HEAD_ONLY; else *dt &= ~HEAD_ONLY;