summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/RedmineUserService.java
diff options
context:
space:
mode:
authormallowlabs <mallowlabs@gmail.com>2012-09-08 23:47:53 +0900
committermallowlabs <mallowlabs@gmail.com>2012-09-08 23:47:53 +0900
commite334e3e7622f440662f989b2b91e4eac9370d2da (patch)
treeef01cb76745f83a83d0209647a98024c5fdc9048 /src/com/gitblit/RedmineUserService.java
parent98ba4e116e79dfda72810b1e5135a4d9b1ddab6e (diff)
downloadgitblit-e334e3e7622f440662f989b2b91e4eac9370d2da.tar.gz
gitblit-e334e3e7622f440662f989b2b91e4eac9370d2da.zip
Changed using ConnectionUtils
Diffstat (limited to 'src/com/gitblit/RedmineUserService.java')
-rw-r--r--src/com/gitblit/RedmineUserService.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/gitblit/RedmineUserService.java b/src/com/gitblit/RedmineUserService.java
index 93d1af85..6ff61c73 100644
--- a/src/com/gitblit/RedmineUserService.java
+++ b/src/com/gitblit/RedmineUserService.java
@@ -4,13 +4,13 @@ import java.io.File;
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 @@ public class RedmineUserService extends GitblitUserService {
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());