Favicon: small improvements

pull/194/merge
M66B 4 years ago
parent c90aef499d
commit d94f700356

@ -616,6 +616,8 @@ public class ContactInfo {
continue; continue;
URL url = new URL(base, href); URL url = new URL(base, href);
if (!"https".equals(url.getProtocol()))
throw new FileNotFoundException(url.toString());
Log.i("GET favicon manifest " + url); Log.i("GET favicon manifest " + url);
HttpsURLConnection m = (HttpsURLConnection) url.openConnection(); HttpsURLConnection m = (HttpsURLConnection) url.openConnection();
@ -767,7 +769,7 @@ public class ContactInfo {
Log.i("GET favicon " + url); Log.i("GET favicon " + url);
if (!"https".equals(url.getProtocol())) if (!"https".equals(url.getProtocol()))
throw new FileNotFoundException("http"); throw new FileNotFoundException(url.toString());
HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();
connection.setRequestMethod("GET"); connection.setRequestMethod("GET");

Loading…
Cancel
Save