Commit 1de19b92 authored by Max Kellermann's avatar Max Kellermann

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.
parent ff162b5a
ver 0.20.12 (not yet released)
* input
- curl: fix seeking
ver 0.20.11 (2017/10/18)
* storage
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment