Skip to content

Commit

Permalink
[XrdCl] Include the password part in the host id (as documented)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljanyst committed Apr 24, 2013
1 parent 51357c6 commit 6a80f7a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/XrdCl/XrdClURL.cc
Expand Up @@ -368,8 +368,13 @@ namespace XrdCl
void URL::ComputeHostId()
{
std::ostringstream o;
if( pUserName.length() )
o << pUserName << "@";
if( !pUserName.empty() )
{
o << pUserName;
if( !pPassword.empty() )
o << ":" << pPassword;
o << "@";
}
o << pHostName << ":" << pPort;
pHostId = o.str();
}
Expand Down

0 comments on commit 6a80f7a

Please sign in to comment.