Specs says ZIM favicon should be at '-/favicon', should be tried… (#257)

Specs says ZIM favicon should be at '-/favicon', should be tried first
This commit is contained in:
Matthieu Gautier 2019-08-19 17:17:34 +02:00 committed by GitHub
commit 5f81fab1e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ Entry Reader::getMainPage() const
bool Reader::getFavicon(string& content, string& mimeType) const bool Reader::getFavicon(string& content, string& mimeType) const
{ {
static const char* const paths[] = {"-/favicon.png", "I/favicon.png", "I/favicon", "-/favicon"}; static const char* const paths[] = {"-/favicon", "-/favicon.png", "I/favicon.png", "I/favicon"};
for (auto &path: paths) { for (auto &path: paths) {
try { try {