Skip to content

Commit

Permalink
[XrdCl] use cks.type cgi tag to select the checksum type
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichal committed Jun 3, 2016
1 parent 745bcb7 commit 8f1dcc5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/XrdCl/XrdClUtils.cc
Expand Up @@ -230,7 +230,12 @@ namespace XrdCl
const std::string &path )
{
FileSystem *fs = new FileSystem( URL( server ) );
Buffer arg; arg.FromString( path );
// add the 'cks.type' cgi tag in order to
// select the proper checksum type in case
// the server supports more than one checksum
size_t pos = path.find( '?' );
std::string cksPath = path + ( pos == std::string::npos ? '?' : '&' ) + "cks.type=" + checkSumType;
Buffer arg; arg.FromString( cksPath );
Buffer *cksResponse = 0;
XRootDStatus st;
Log *log = DefaultEnv::GetLog();
Expand Down

0 comments on commit 8f1dcc5

Please sign in to comment.