cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: CURLOPT_RANGE reset for ftp broken in new curl ?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 16 Feb 2007 15:24:19 +0100 (CET)

On Fri, 16 Feb 2007, Duncan Mac-Vicar Prett wrote:

> Test program attached.

Test fix:

diff -u -r1.395 ftp.c
--- lib/ftp.c 6 Feb 2007 18:06:37 -0000 1.395
+++ lib/ftp.c 16 Feb 2007 14:29:09 -0000
@@ -3285,6 +3285,8 @@
                   from, to, data->reqdata.maxdownload));
      ftpc->dont_check = TRUE; /* dont check for successful transfer */
    }
+ else
+ data->reqdata.maxdownload = -1;
    return CURLE_OK;
  }

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-02-16