include port number to create v2 signature
@@ -2407,7 +2407,7 @@ | ||
2407 | 2407 | throw new SignatureException("URI Syntax Exception thrown " + |
2408 | 2408 | "while constructing string to sign", ex); |
2409 | 2409 | } |
2410 | - data.append(endpoint.getHost()); | |
2410 | + data.append(endpoint.getHost() + ":" + endpoint.getPort()); | |
2411 | 2411 | data.append("\n"); |
2412 | 2412 | String uri = endpoint.getPath(); |
2413 | 2413 | if (uri == null || uri.length() == 0) { |