--- theme.inc  2009-04-22 11:12:01.249555500 -0400
+++ theme.inc  2009-04-22 11:14:59.489634000 -0400
@@ -1820,7 +1820,10 @@

   // Add favicon.
   if (theme_get_setting('toggle_favicon')) {
-    drupal_add_html_head('<link rel="shortcut icon" href="' . check_url(theme_get_setting('favicon')) . '" type="image/x-icon" />');
+    if (($icontype=file_get_mimetype(theme_get_settings('favicon'))) == 'application/octet-strem') {
+      $icontype = 'image/x-icon';
+    }
+    drupal_set_html_head('<link rel="shortcut icon" href="'. check_url(theme_get_setting('favicon')) .'" type="' . $icontype . '" />');
   }

   // Set up layout variable.