commit eda9e94
Alex Schroeder
·
2022-12-04 19:16:40 +0000 UTC
parent 6714084
Handle /favicon.ico Reply with the susie.png.
1 files changed,
+1,
-1
M
httpd.c
M
httpd.c
+1,
-1
1@@ -76,7 +76,7 @@ int server_get_handler(d_char *req, char *q_path,
2 }
3 }
4 else
5- if (strcmp(q_path, "/susie.png") == 0) {
6+ if (strcmp(q_path, "/susie.png") == 0 || strcmp(q_path, "/favicon.ico") == 0 ) {
7 status = 200;
8 *body = xs_base64_dec(susie, b_size);
9 *ctype = "image/png";