Skip to content

Commit

Permalink
xrdcp: if XRDCP_ALLOW_HTTP env var is set, enable HTTP support
Browse files Browse the repository at this point in the history
  • Loading branch information
radupopescu committed Oct 3, 2018
1 parent 952c919 commit cb767d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/XrdApps/XrdCpConfig.cc
Expand Up @@ -334,6 +334,11 @@ do{while(optind < Argc && Legacy(optind)) {}
dstFile = new XrdCpFile(parmVal[--parmCnt], rc);
if (rc) FMSG("Invalid url, '" <<dstFile->Path <<"'.", 22);

// Allow HTTP if XRDCP_ALLOW_HTTP is set
if (getenv("XRDCP_ALLOW_HTTP")) {
OpSpec |= DoAllowHttp;
}

// Do a protocol check
//
if (dstFile->Protocol != XrdCpFile::isFile
Expand Down

0 comments on commit cb767d9

Please sign in to comment.