Fix failing tests by correcting OkHttpClient
@@ -57,7 +57,8 @@ public HttpResponse execute(HttpRequest request, boolean followRedirects) throws
HttpUrl.Builder url;
try {
- url = HttpUrl.parse(baseUrl.toString() + request.getUri()).newBuilder();
+ String rawUrl = baseUrl.toExternalForm().replaceAll("/$", "") + request.getUri();
+ url = HttpUrl.parse(rawUrl).newBuilder();
} catch (NullPointerException e) {
throw new IOException("Unable to parse URL: " + baseUrl.toString() + request.getUri());
}
