Skip to content

Commit a67d046

Browse files
committed
add TCurlFile plugin
1 parent aa1544c commit a67d046

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

etc/plugins/TFile/P140_TCurlFile.C

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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(
9+
"TFile",
10+
"^http[s]?:",
11+
"TCurlFile",
12+
"RCurlHttp",
13+
"TCurlFile(const char *, Option_t *)");
14+
}
15+
}

0 commit comments

Comments
 (0)