summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrunfink <grunfink@noreply.codeberg.org>2022-12-05 08:04:20 +0000
committergrunfink <grunfink@noreply.codeberg.org>2022-12-05 08:04:20 +0000
commit5041014a394da44db580811c32c86933b5f776b0 (patch)
treea0e269ccdcebb23f613fb8608171550fd5bfd022
parentd159765aa3c77083d48a2743bff3b325dae27d76 (diff)
parenteda9e9408627979f9b9e8e3e9b2e7070e06a2eba (diff)
Merge pull request 'Handle /favicon.ico' (#12) from kensanata/snac2:favicon into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/12
-rw-r--r--httpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpd.c b/httpd.c
index dd8978d..bfe14fe 100644
--- 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";