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:
parent
ff162b5a03
commit
1de19b921a
2
NEWS
2
NEWS
|
@ -1,4 +1,6 @@
|
||||||
ver 0.20.12 (not yet released)
|
ver 0.20.12 (not yet released)
|
||||||
|
* input
|
||||||
|
- curl: fix seeking
|
||||||
|
|
||||||
ver 0.20.11 (2017/10/18)
|
ver 0.20.11 (2017/10/18)
|
||||||
* storage
|
* storage
|
||||||
|
|
|
@ -409,7 +409,6 @@ CurlInputStream::SeekInternal(offset_type new_offset)
|
||||||
}
|
}
|
||||||
|
|
||||||
InitEasy();
|
InitEasy();
|
||||||
StartRequest();
|
|
||||||
|
|
||||||
/* send the "Range" header */
|
/* send the "Range" header */
|
||||||
|
|
||||||
|
@ -423,6 +422,8 @@ CurlInputStream::SeekInternal(offset_type new_offset)
|
||||||
#endif
|
#endif
|
||||||
request->SetOption(CURLOPT_RANGE, range);
|
request->SetOption(CURLOPT_RANGE, range);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StartRequest();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue