Przeglądaj źródła

Merge pull request 'Handle /favicon.ico' (#12) from kensanata/snac2:favicon into master

Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/12
grunfink 3 lat temu
rodzic
commit
5041014a39
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      httpd.c

+ 1 - 1
httpd.c

@@ -76,7 +76,7 @@ int server_get_handler(d_char *req, char *q_path,
         }
     }
     else
-    if (strcmp(q_path, "/susie.png") == 0) {
+    if (strcmp(q_path, "/susie.png") == 0 || strcmp(q_path, "/favicon.ico") == 0 ) {
         status = 200;
         *body  = xs_base64_dec(susie, b_size);
         *ctype = "image/png";