From d1a3c9944ee3215d78d644c47768e205fd043990 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 9 Oct 2003 20:04:47 +0000 Subject: 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 --- lib/url.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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! */ -- cgit v1.2.3