Skip to content
Snippets Groups Projects
Commit d1a3c994 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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
parent 8996a734
No related branches found
No related tags found
No related merge requests found
......@@ -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! */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment