From 0e89f07d5a98a56fe890ddd99135766be90185de Mon Sep 17 00:00:00 2001 From: Justin Stephenson Date: Mon, 29 Aug 2022 02:09:51 -0400 Subject: [PATCH] Implement AutoCloseable in SimpleHTTP util (#11060) Co-authored-by: Stian Thorgersen --- .../main/java/org/keycloak/broker/provider/util/SimpleHttp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-spi-private/src/main/java/org/keycloak/broker/provider/util/SimpleHttp.java b/server-spi-private/src/main/java/org/keycloak/broker/provider/util/SimpleHttp.java index 5dcb0952d0..ed2ba84590 100755 --- a/server-spi-private/src/main/java/org/keycloak/broker/provider/util/SimpleHttp.java +++ b/server-spi-private/src/main/java/org/keycloak/broker/provider/util/SimpleHttp.java @@ -317,7 +317,7 @@ public class SimpleHttp { return new UrlEncodedFormEntity(urlParameters, StandardCharsets.UTF_8); } - public static class Response { + public static class Response implements AutoCloseable { private final HttpResponse response; private int statusCode = -1;