Skip to content

Commit 18faf73

Browse files
committed
add TCurlFile plugin
1 parent 3b2df41 commit 18faf73

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

etc/plugins/TFile/P140_TCurlFile.C

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
void P140_TCurlFile()
2+
{
3+
TString configfeatures = gROOT->GetConfigFeatures();
4+
5+
if (configfeatures.Contains("curl") &&
6+
(!configfeatures.Contains("davix") || gEnv->GetValue("Curl.ReplaceDavix", 0))) {
7+
8+
gPluginMgr->AddHandler("TFile", "^http[s]?:", "TCurlFile", "RCurlHttp", "TCurlFile(const char *, Option_t *)");
9+
}
10+
}

0 commit comments

Comments
 (0)