commit 5041014

grunfink  ·  2022-12-05 08:04:20 +0000 UTC
parents d159765, eda9e94
Merge pull request 'Handle /favicon.ico' (#12) from kensanata/snac2:favicon into master

Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/12
1 files changed,  +1, -1
+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";