X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhttp.c;h=3403648a777d1aa0c1cc0e98b057b6b587550c89;hp=8373133b23617f036504afa50b0ca3305de74fe0;hb=5d8cfbd9044f91d277027d8c1aab3c47e118b407;hpb=1dc66a6cf6d2a67b98e6378c55aa598733fbf116 diff --git a/src/http.c b/src/http.c index 8373133b..3403648a 100644 --- a/src/http.c +++ b/src/http.c @@ -488,13 +488,14 @@ User-Agent: %s\r\n\ Host: %s%s\r\n\ Accept: %s\r\n\ %s%s%s%s%s%s\r\n", - command, path, qstring, useragent, remhost, host_port ? host_port : "", - HTTP_ACCEPT, referer ? referer : "", - wwwauth ? wwwauth : "", - proxyauth ? proxyauth : "", - range ? range : "", - pragma_h, - opt.user_header ? opt.user_header : ""); + command, path, qstring ? qstring : "", useragent, remhost, + host_port ? host_port : "", + HTTP_ACCEPT, referer ? referer : "", + wwwauth ? wwwauth : "", + proxyauth ? proxyauth : "", + range ? range : "", + pragma_h, + opt.user_header ? opt.user_header : ""); DEBUGP (("---request begin---\n%s---request end---\n", request)); /* Free the temporary memory. */ FREE_MAYBE (wwwauth); @@ -957,9 +958,16 @@ File `%s' already there, will not retrieve.\n"), u->local); /* Increment the pass counter. */ ++count; /* Wait before the retrieval (unless this is the very first - retrieval). */ - if (!first_retrieval && opt.wait) - sleep (opt.wait); + retrieval). + Check if we are retrying or not, wait accordingly - HEH */ + if (!first_retrieval && (opt.wait || (count && opt.waitretry))) + if (count) + if (count