mirror of https://github.com/kiwix/libkiwix.git
Follow redirects in favicons
This commit is contained in:
parent
4cb55e1eef
commit
3227b29c90
|
@ -265,6 +265,7 @@ bool Reader::getFavicon(string& content, string& mimeType) const
|
|||
for (auto &path: paths) {
|
||||
try {
|
||||
auto entry = getEntryFromPath(path);
|
||||
entry = entry.getFinalEntry();
|
||||
content = entry.getContent();
|
||||
mimeType = entry.getMimetype();
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue