Skip to content

Commit

Permalink
Fix issues with SSL and APNs with proxys
Browse files Browse the repository at this point in the history
  • Loading branch information
mhagander committed Aug 16, 2012
1 parent bb3fa12 commit 79fe51b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public interface ListServerStatusCallbacks {
protected String FetchUrl(String url) {
try {
final URL u = new URL(url);
URLConnection c = u.openConnection();
URLConnection c = u.openConnection(java.net.Proxy.NO_PROXY);

if (u.getProtocol().equals("https")) {
HttpsURLConnection sslconn = (HttpsURLConnection) c;
Expand Down Expand Up @@ -357,6 +357,8 @@ public X509Certificate[] getAcceptedIssuers() {
sw.write(line);
sw.write("\n");
}
r.close();
isr.close();
return sw.toString();
} catch (MalformedURLException e) {
throw new RuntimeException(String.format(
Expand Down

0 comments on commit 79fe51b

Please sign in to comment.