input/curl: call StartRequest() after setting CURLOPT_RANGE
It's not possible to set CURL options after curl_easy_perform(), and thus the CURLOPT_RANGE had no effect.
This commit is contained in:
@@ -409,7 +409,6 @@ CurlInputStream::SeekInternal(offset_type new_offset)
|
||||
}
|
||||
|
||||
InitEasy();
|
||||
StartRequest();
|
||||
|
||||
/* send the "Range" header */
|
||||
|
||||
@@ -423,6 +422,8 @@ CurlInputStream::SeekInternal(offset_type new_offset)
|
||||
#endif
|
||||
request->SetOption(CURLOPT_RANGE, range);
|
||||
}
|
||||
|
||||
StartRequest();
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user