Fossil SCM

Fix the mimetype for /favicon.ico.

drh 2020-03-03 14:35 trunk
Commit 00e2f0511e2bcd518c6880925b69ad528a220c15a60b6d57706396ae9fc8a3ff
1 file changed +2 -2
+2 -2
--- src/doc.c
+++ src/doc.c
@@ -1124,11 +1124,11 @@
11241124
cgi_set_content_type(zMime);
11251125
cgi_set_content(&bgimg);
11261126
}
11271127
11281128
/* The default favicon.ico
1129
-** A 16x16 Microsoft bitmap image. 1150 bytes.
1129
+** A 62x71 pixel GIF image for the Fossil lizzard icon.
11301130
*/
11311131
static const unsigned char favicon[] = {
11321132
0, 0, 1, 0, 1, 0, 16, 16, 0, 0, 1, 0, 32, 0,104, 4, 0, 0, 22,
11331133
0, 0, 0, 40, 0, 0, 0, 16, 0, 0, 0, 32, 0, 0, 0, 1, 0, 32, 0,
11341134
0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -1211,11 +1211,11 @@
12111211
Blob favicon;
12121212
12131213
etag_check(ETAG_CONFIG, 0);
12141214
blob_zero(&favicon);
12151215
blob_init(&favicon, (char*)aLogo, sizeof(aLogo));
1216
- cgi_set_content_type("image/vnd.microsoft.icon");
1216
+ cgi_set_content_type("image/gif");
12171217
cgi_set_content(&favicon);
12181218
}
12191219
12201220
/*
12211221
** WEBPAGE: docsrch
12221222
--- src/doc.c
+++ src/doc.c
@@ -1124,11 +1124,11 @@
1124 cgi_set_content_type(zMime);
1125 cgi_set_content(&bgimg);
1126 }
1127
1128 /* The default favicon.ico
1129 ** A 16x16 Microsoft bitmap image. 1150 bytes.
1130 */
1131 static const unsigned char favicon[] = {
1132 0, 0, 1, 0, 1, 0, 16, 16, 0, 0, 1, 0, 32, 0,104, 4, 0, 0, 22,
1133 0, 0, 0, 40, 0, 0, 0, 16, 0, 0, 0, 32, 0, 0, 0, 1, 0, 32, 0,
1134 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -1211,11 +1211,11 @@
1211 Blob favicon;
1212
1213 etag_check(ETAG_CONFIG, 0);
1214 blob_zero(&favicon);
1215 blob_init(&favicon, (char*)aLogo, sizeof(aLogo));
1216 cgi_set_content_type("image/vnd.microsoft.icon");
1217 cgi_set_content(&favicon);
1218 }
1219
1220 /*
1221 ** WEBPAGE: docsrch
1222
--- src/doc.c
+++ src/doc.c
@@ -1124,11 +1124,11 @@
1124 cgi_set_content_type(zMime);
1125 cgi_set_content(&bgimg);
1126 }
1127
1128 /* The default favicon.ico
1129 ** A 62x71 pixel GIF image for the Fossil lizzard icon.
1130 */
1131 static const unsigned char favicon[] = {
1132 0, 0, 1, 0, 1, 0, 16, 16, 0, 0, 1, 0, 32, 0,104, 4, 0, 0, 22,
1133 0, 0, 0, 40, 0, 0, 0, 16, 0, 0, 0, 32, 0, 0, 0, 1, 0, 32, 0,
1134 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -1211,11 +1211,11 @@
1211 Blob favicon;
1212
1213 etag_check(ETAG_CONFIG, 0);
1214 blob_zero(&favicon);
1215 blob_init(&favicon, (char*)aLogo, sizeof(aLogo));
1216 cgi_set_content_type("image/gif");
1217 cgi_set_content(&favicon);
1218 }
1219
1220 /*
1221 ** WEBPAGE: docsrch
1222

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button