]> spindle.queued.net Git - midori/commitdiff
Recognize image/x-ico favicons as well
authorChristian Dywan <christian@twotoasts.de>
Tue, 15 Jul 2008 15:54:18 +0000 (17:54 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 15 Jul 2008 15:54:18 +0000 (17:54 +0200)
midori/midori-webview.c

index 5e12a44c297b6b7dc6e1d1156037f130bc74b81b..4a5a5e37824446974636cec52f7e2eb02528b897 100644 (file)
@@ -979,7 +979,8 @@ midori_web_view_get_icon (MidoriWebView* web_view)
         if (info)
         {
             content_type = g_file_info_get_content_type (info);
-            icon = !strcmp (content_type, "image/x-icon")
+            /* favicon.ico can be image/x-ico or image/x-icon */
+            icon = !strcmp (content_type, "image/x-ico")
                 ? g_file_icon_new (icon_file) : NULL;
         }