|
|
|
@ -94,6 +94,7 @@ class ZarrFunctions: public ZarrTypes
|
|
|
|
|
std::unique_ptr<GenericCache> cache; |
|
|
|
|
CURLRAII chandle; |
|
|
|
|
MString url; |
|
|
|
|
MString proxyurl; |
|
|
|
|
|
|
|
|
|
std::vector<std::vector<size_t>> chunks; |
|
|
|
|
|
|
|
|
@ -107,6 +108,8 @@ class ZarrFunctions: public ZarrTypes
|
|
|
|
|
{ |
|
|
|
|
auto oldprefix = michlib::GPL.UsePrefix("ZARR"); |
|
|
|
|
cache.reset(CreateCache(michlib::GPL.ParameterSValue("Cache", ""))); |
|
|
|
|
proxyurl = michlib::GPL.ParameterSValue("Proxy", ""); |
|
|
|
|
if(proxyurl.Exist()) curl_easy_setopt(chandle, CURLOPT_PROXY, proxyurl.Buf()); |
|
|
|
|
michlib::GPL.UsePrefix(oldprefix); |
|
|
|
|
if(!cache) |
|
|
|
|
{ |
|
|
|
|