bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] bug wget -c --content-disposition


From: Alex
Subject: Re: [Bug-wget] bug wget -c --content-disposition
Date: Sat, 06 Oct 2012 19:47:27 +0300
User-agent: Opera Mail/11.11 (Win32)

Greetings, Giuseppe Scrivano.
Yes, thanks, it work.

compile string (sorry, full build enviroment is broken now):
./configure --disable-iri --disable-nls --without-ssl
run string:
rm ./src/http.o ./src/wget.exe & make && ./src/wget -d -c --content-disposition 
http://fantasy-worlds.org/lib/id386/download/

Sorry for timewaste.
Best regars, Alex

On Sat, 06 Oct 2012 17:01:12 +0300, Giuseppe Scrivano <address@hidden> wrote:

could you please try if the attached patch (untested) fix it for you?
I don't think we want to send an additional HEAD request if -c is not
specified.

diff --git a/src/http.c b/src/http.c
index 02988d2..5888474 100644
--- a/src/http.c
+++ b/src/http.c
@@ -3004,6 +3004,11 @@ http_loop (struct url *u, struct url *original_url, char 
**newloc,
   if (!opt.spider)
     send_head_first = false;
+  /* Send preliminary HEAD request if --content-disposition and -c are used
+     together.  */
+  if (opt.content_disposition && opt.always_rest)
+    send_head_first = true;
+
   /* Send preliminary HEAD request if -N is given and we have an existing
    * destination file. */
   file_name = url_file_name (opt.trustservernames ? u : original_url, NULL);



Giuseppe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]