Skip to content

Commit

Permalink
Merge pull request #834 from radupopescu/xrdhttppss
Browse files Browse the repository at this point in the history
XrdClUrl - use 80/443 as default port numbers for HTTP/HTTPS URLs
  • Loading branch information
abh3 committed Oct 3, 2018
2 parents b6e1b80 + fe064c5 commit 84c8e1f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/XrdCl/XrdClURL.cc
Expand Up @@ -90,6 +90,16 @@ namespace XrdCl
current = url;
}

//--------------------------------------------------------------------------
// If the protocol is HTTP or HTTPS, change the default port number
//--------------------------------------------------------------------------
if (pProtocol == "http") {
pPort = 80;
}
if (pProtocol == "https") {
pPort = 443;
}

//--------------------------------------------------------------------------
// Extract host info and path
//--------------------------------------------------------------------------
Expand Down

0 comments on commit 84c8e1f

Please sign in to comment.