mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
speed feeds refresh up by using http headers
This commit is contained in:
@@ -20,6 +20,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import com.commafeed.backend.HttpGetter;
|
||||
import com.commafeed.backend.HttpGetter.HttpResult;
|
||||
import com.commafeed.backend.StartupBean;
|
||||
import com.commafeed.backend.model.UserRole.Role;
|
||||
import com.commafeed.frontend.SecurityCheck;
|
||||
@@ -74,7 +75,10 @@ public class FaviconPage extends BasePage {
|
||||
|
||||
String iconUrl = "http://g.etfv.co/"
|
||||
+ URLEncoder.encode(url, "UTF-8") + "?defaulticon=none";
|
||||
img = getter.getBinary(iconUrl);
|
||||
HttpResult result = getter.getBinary(iconUrl);
|
||||
if (result != null) {
|
||||
img = result.getContent();
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
|
||||
Reference in New Issue
Block a user