Favicon: small improvements

This commit is contained in:
M66B 2022-03-07 10:32:05 +01:00
parent c90aef499d
commit d94f700356
1 changed files with 3 additions and 1 deletions

View File

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