snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 5041014a394da44db580811c32c86933b5f776b0
parent d159765aa3c77083d48a2743bff3b325dae27d76
Author: grunfink <grunfink@noreply.codeberg.org>
Date:   Mon,  5 Dec 2022 08:04:20 +0000

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

Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/12

Diffstat:
Mhttpd.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/httpd.c b/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";