From 8bca84c0e7dcf4e180371d1dbdc987eb74489f30 Mon Sep 17 00:00:00 2001 From: Hynek Mlnarik Date: Fri, 21 Oct 2016 11:34:08 +0200 Subject: [PATCH] KEYCLOAK-3793 Replace httpclient 4.4 calls with those available in 4.3 --- .../org/keycloak/authorization/client/util/Http.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) {