mirror of
https://github.com/curl/curl.git
synced 2026-07-24 06:27:16 +03:00
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
This commit is contained in:
parent
8996a7346e
commit
d1a3c9944e
1 changed files with 2 additions and 0 deletions
|
|
@ -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! */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue