Fossil

Check-in [00e2f0511e]
Login

Check-in [00e2f0511e]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix the mimetype for /favicon.ico.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 00e2f0511e2bcd518c6880925b69ad528a220c15a60b6d57706396ae9fc8a3ff
User & Date: drh 2020-03-03 14:35:51.445
Context
2020-03-03
19:13
Properly truncate a UTF-8 encoded title using a function by @florian.balmer per [http://fossil-scm.org/forum/forumpost/52b141aa91] ... (check-in: 35ad8eca06 user: ashepilko tags: trunk)
14:35
Fix the mimetype for /favicon.ico. ... (check-in: 00e2f0511e user: drh tags: trunk)
2020-03-02
15:41
Trying to improve the documentation for skin development. This is a work-in-progress. ... (check-in: 2698c16b1c user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/doc.c.
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
    blob_init(&bgimg, (char*)aBackground, sizeof(aBackground));
  }
  cgi_set_content_type(zMime);
  cgi_set_content(&bgimg);
}

/* The default favicon.ico
** A 16x16 Microsoft bitmap image.  1150 bytes.
*/
static const unsigned char favicon[] = {
   0,  0,  1,  0,  1,  0, 16, 16,  0,  0,  1,  0, 32,  0,104,  4,  0,  0, 22,
   0,  0,  0, 40,  0,  0,  0, 16,  0,  0,  0, 32,  0,  0,  0,  1,  0, 32,  0,
   0,  0,  0,  0,  0,  4,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
   0,  0,  0,  0,  0,255,255,255,255,255,255,255,255,255,255,255,255,231,226,
 216,255,184,170,141,255,179,164,133,255,252,252,251,255,240,237,231,255,213,







|







1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
    blob_init(&bgimg, (char*)aBackground, sizeof(aBackground));
  }
  cgi_set_content_type(zMime);
  cgi_set_content(&bgimg);
}

/* The default favicon.ico
** A 62x71 pixel GIF image for the Fossil lizzard icon.
*/
static const unsigned char favicon[] = {
   0,  0,  1,  0,  1,  0, 16, 16,  0,  0,  1,  0, 32,  0,104,  4,  0,  0, 22,
   0,  0,  0, 40,  0,  0,  0, 16,  0,  0,  0, 32,  0,  0,  0,  1,  0, 32,  0,
   0,  0,  0,  0,  0,  4,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
   0,  0,  0,  0,  0,255,255,255,255,255,255,255,255,255,255,255,255,231,226,
 216,255,184,170,141,255,179,164,133,255,252,252,251,255,240,237,231,255,213,
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
*/
void favicon_page(void){
  Blob favicon;

  etag_check(ETAG_CONFIG, 0);
  blob_zero(&favicon);
  blob_init(&favicon, (char*)aLogo, sizeof(aLogo));
  cgi_set_content_type("image/vnd.microsoft.icon");
  cgi_set_content(&favicon);
}

/*
** WEBPAGE: docsrch
**
** Search for documents that match a user-supplied full-text search pattern.







|







1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
*/
void favicon_page(void){
  Blob favicon;

  etag_check(ETAG_CONFIG, 0);
  blob_zero(&favicon);
  blob_init(&favicon, (char*)aLogo, sizeof(aLogo));
  cgi_set_content_type("image/gif");
  cgi_set_content(&favicon);
}

/*
** WEBPAGE: docsrch
**
** Search for documents that match a user-supplied full-text search pattern.