diff --git a/authz/client/src/main/java/org/keycloak/authorization/client/util/Http.java b/authz/client/src/main/java/org/keycloak/authorization/client/util/Http.java index 503772f4aa..0982abf8f2 100644 --- a/authz/client/src/main/java/org/keycloak/authorization/client/util/Http.java +++ b/authz/client/src/main/java/org/keycloak/authorization/client/util/Http.java @@ -36,23 +36,23 @@ public class Http { } public HttpMethod get(String path) { - return method(RequestBuilder.get(this.serverConfiguration.getIssuer() + path)); + return method(RequestBuilder.get().setUri(this.serverConfiguration.getIssuer() + path)); } public HttpMethod get(URI path) { - return method(RequestBuilder.get(path)); + return method(RequestBuilder.get().setUri(path)); } public HttpMethod post(URI path) { - return method(RequestBuilder.post(path)); + return method(RequestBuilder.post().setUri(path)); } public HttpMethod post(String path) { - return method(RequestBuilder.post(this.serverConfiguration.getIssuer() + path)); + return method(RequestBuilder.post().setUri(this.serverConfiguration.getIssuer() + path)); } public HttpMethod delete(String path) { - return method(RequestBuilder.delete(this.serverConfiguration.getIssuer() + path)); + return method(RequestBuilder.delete().setUri(this.serverConfiguration.getIssuer() + path)); } private HttpMethod method(RequestBuilder builder) {