mirror of
https://github.com/apache/jclouds.git
synced 2025-02-16 15:08:28 +00:00
fixed double-slash in path
git-svn-id: http://jclouds.googlecode.com/svn/trunk@2004 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
cfab82d775
commit
1bc88f36f2
@ -72,8 +72,7 @@ public class ParseURIFromListOrLocationHeaderIf20x implements Function<HttpRespo
|
|||||||
checkState(request != null, "request should have been initialized");
|
checkState(request != null, "request should have been initialized");
|
||||||
if (!location.startsWith("/"))
|
if (!location.startsWith("/"))
|
||||||
location = "/" + location;
|
location = "/" + location;
|
||||||
UriBuilder builder = UriBuilder.fromUri(URI.create("http://localhost"
|
UriBuilder builder = UriBuilder.fromUri(URI.create("http://localhost" + location));
|
||||||
+ locationUri.getPath()));
|
|
||||||
builder.host(request.getEndpoint().getHost());
|
builder.host(request.getEndpoint().getHost());
|
||||||
builder.port(request.getEndpoint().getPort());
|
builder.port(request.getEndpoint().getPort());
|
||||||
builder.scheme(request.getEndpoint().getScheme());
|
builder.scheme(request.getEndpoint().getScheme());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user