mirror of
https://github.com/Athou/commafeed.git
synced 2026-09-22 20:14:21 +00:00
correctly handle root favicons for non-default ports
This commit is contained in:
@@ -30,7 +30,12 @@ public class RootFaviconFetcher implements FaviconFetcher {
|
||||
|
||||
try {
|
||||
URI uri = URI.create(url.trim());
|
||||
String faviconUrl = "%s://%s/favicon.ico".formatted(uri.getScheme(), uri.getHost());
|
||||
String faviconUrl =
|
||||
"%s://%s%s/favicon.ico"
|
||||
.formatted(
|
||||
uri.getScheme(),
|
||||
uri.getHost(),
|
||||
uri.getPort() > 0 ? ":" + uri.getPort() : "");
|
||||
|
||||
log.debug("getting root icon at {}", faviconUrl);
|
||||
HttpResult result = getter.get(faviconUrl);
|
||||
|
||||
Reference in New Issue
Block a user