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) {
|
for (auto &path: paths) {
|
||||||
try {
|
try {
|
||||||
auto entry = getEntryFromPath(path);
|
auto entry = getEntryFromPath(path);
|
||||||
|
entry = entry.getFinalEntry();
|
||||||
content = entry.getContent();
|
content = entry.getContent();
|
||||||
mimeType = entry.getMimetype();
|
mimeType = entry.getMimetype();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue