|
|
@ -171,6 +171,7 @@ Error ZarrFunctions::GetChunk(const MString& var, const std::vector<size_t>& chu |
|
|
|
{ |
|
|
|
{ |
|
|
|
michlib::message(str + " not found in cache, downloading"); |
|
|
|
michlib::message(str + " not found in cache, downloading"); |
|
|
|
CURLRAII myhandle; // TODO: remove this workaround of unknown bug
|
|
|
|
CURLRAII myhandle; // TODO: remove this workaround of unknown bug
|
|
|
|
|
|
|
|
if(proxyurl.Exist()) curl_easy_setopt(myhandle, CURLOPT_PROXY, proxyurl.Buf()); |
|
|
|
//auto [out, res] = GetUrl(chandle, str);
|
|
|
|
//auto [out, res] = GetUrl(chandle, str);
|
|
|
|
auto [out, res] = GetUrl(myhandle, str); |
|
|
|
auto [out, res] = GetUrl(myhandle, str); |
|
|
|
if(res != CURLE_OK) return Error(pref, MString("can't download chunk: ") + chandle.Err()); |
|
|
|
if(res != CURLE_OK) return Error(pref, MString("can't download chunk: ") + chandle.Err()); |
|
|
|