Fossil SCM
Fix the mimetype for /favicon.ico.
Commit
00e2f0511e2bcd518c6880925b69ad528a220c15a60b6d57706396ae9fc8a3ff
Parent
2698c16b1ca1176…
1 file changed
+2
-2
+2
-2
| --- src/doc.c | ||
| +++ src/doc.c | ||
| @@ -1124,11 +1124,11 @@ | ||
| 1124 | 1124 | cgi_set_content_type(zMime); |
| 1125 | 1125 | cgi_set_content(&bgimg); |
| 1126 | 1126 | } |
| 1127 | 1127 | |
| 1128 | 1128 | /* The default favicon.ico |
| 1129 | -** A 16x16 Microsoft bitmap image. 1150 bytes. | |
| 1129 | +** A 62x71 pixel GIF image for the Fossil lizzard icon. | |
| 1130 | 1130 | */ |
| 1131 | 1131 | static const unsigned char favicon[] = { |
| 1132 | 1132 | 0, 0, 1, 0, 1, 0, 16, 16, 0, 0, 1, 0, 32, 0,104, 4, 0, 0, 22, |
| 1133 | 1133 | 0, 0, 0, 40, 0, 0, 0, 16, 0, 0, 0, 32, 0, 0, 0, 1, 0, 32, 0, |
| 1134 | 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 | 1211 | Blob favicon; |
| 1212 | 1212 | |
| 1213 | 1213 | etag_check(ETAG_CONFIG, 0); |
| 1214 | 1214 | blob_zero(&favicon); |
| 1215 | 1215 | blob_init(&favicon, (char*)aLogo, sizeof(aLogo)); |
| 1216 | - cgi_set_content_type("image/vnd.microsoft.icon"); | |
| 1216 | + cgi_set_content_type("image/gif"); | |
| 1217 | 1217 | cgi_set_content(&favicon); |
| 1218 | 1218 | } |
| 1219 | 1219 | |
| 1220 | 1220 | /* |
| 1221 | 1221 | ** WEBPAGE: docsrch |
| 1222 | 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 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 |