mirror of https://github.com/apache/jclouds.git
Merge branch 'master' of github.com:jclouds/jclouds
* 'master' of github.com:jclouds/jclouds: Fix port number in the parseauthentication
This commit is contained in:
commit
c18c97552f
|
@ -89,7 +89,11 @@ public class ParseAuthenticationResponseFromHeaders implements Function<HttpResp
|
|||
|
||||
@Override
|
||||
public ParseAuthenticationResponseFromHeaders setContext(HttpRequest request) {
|
||||
return setHostToReplace(request.getEndpoint().getHost());
|
||||
String host = request.getEndpoint().getHost();
|
||||
if (request.getEndpoint().getPort() != -1) {
|
||||
host += ":" + request.getEndpoint().getPort();
|
||||
}
|
||||
return setHostToReplace(host);
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
|
|
Loading…
Reference in New Issue