aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-09 20:04:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-09 20:04:47 +0000
commitd1a3c9944ee3215d78d644c47768e205fd043990 (patch)
treea51a02717f84465c49f7e188830ef35f40bbf9ff
parent8996a7346e893a337197ec3958457df3e10ee359 (diff)
Lachlan O'Dea fixed a resume problem: "If I set CURLOPT_RESUME_FROM, perform
an HTTP download, then reset CURLOPT_RESUME_FROM to 0, the next download still has a Range header with a garbage value." bug report #820502
-rw-r--r--lib/url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 12abbb2c5..435e6b3d1 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2935,6 +2935,8 @@ static CURLcode CreateConnection(struct SessionHandle *data,
conn->bits.rangestringalloc = TRUE; /* mark range string allocated */
conn->bits.use_range = TRUE; /* enable range download */
}
+ else
+ conn->bits.use_range = FALSE; /* disable range download */
*in_connect = conn; /* return this instead! */