aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-06-12 09:21:37 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-06-12 09:21:37 +0000
commit9a78db6e59e5d815a3145f8f696a6fbef92f2447 (patch)
tree87be102e7cf0ef34e7a5e075728a6655f5a81959 /lib
parent6475600afa57c777aa10187c3d1c49fc5f4bf7f5 (diff)
Salvador Dávila's ftp range download fix
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index bb70cd7aa..bcb801405 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2080,6 +2080,12 @@ static CURLcode Connect(struct UrlData *data,
conn->bits.use_range = TRUE; /* enable range download */
conn->bits.rangestringalloc = TRUE; /* mark range string allocated */
}
+ else if (data->set_range) {
+ /* There is a range, but is not a resume, useful for random ftp access */
+ conn->range = strdup(data->set_range);
+ conn->bits.rangestringalloc = TRUE; /* mark range string allocated */
+ conn->bits.use_range = TRUE; /* enable range download */
+ }
*in_connect = conn; /* return this instead! */