From e334e3e7622f440662f989b2b91e4eac9370d2da Mon Sep 17 00:00:00 2001 From: mallowlabs <mallowlabs@gmail.com> Date: Sat, 08 Sep 2012 10:47:53 -0400 Subject: [PATCH] Changed using ConnectionUtils --- src/com/gitblit/RedmineUserService.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/gitblit/RedmineUserService.java b/src/com/gitblit/RedmineUserService.java index 93d1af8..6ff61c7 100644 --- a/src/com/gitblit/RedmineUserService.java +++ b/src/com/gitblit/RedmineUserService.java @@ -4,13 +4,13 @@ import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; -import java.net.URL; import org.apache.wicket.util.io.IOUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.gitblit.models.UserModel; +import com.gitblit.utils.ConnectionUtils; import com.google.gson.Gson; /** @@ -109,8 +109,8 @@ return testingJson; } - URL apiUrl = new URL(url + "users/current.json?key=" + apiKey); - HttpURLConnection http = (HttpURLConnection) apiUrl.openConnection(); + String apiUrl = url + "users/current.json?key=" + apiKey; + HttpURLConnection http = (HttpURLConnection) ConnectionUtils.openConnection(apiUrl, null, null); http.setRequestMethod("GET"); http.connect(); InputStreamReader reader = new InputStreamReader(http.getInputStream()); -- Gitblit v1.9.1