From a3ed2408fcaca25ad4966741e173677aab0a8848 Mon Sep 17 00:00:00 2001 From: default Date: Fri, 27 Jan 2023 18:17:11 +0100 Subject: New function default_avatar_base64(). --- httpd.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'httpd.c') diff --git a/httpd.c b/httpd.c index 87ff669..c5f9ff8 100644 --- a/httpd.c +++ b/httpd.c @@ -14,14 +14,6 @@ #include #include -/* susie.png */ -const char *susie = - "iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQAAAAC" - "CEkxzAAAAUUlEQVQoz43R0QkAMQwCUDdw/y3dwE" - "vsvzlL4X1IoQkAisKmwfAFT3RgJHbQezpSRoXEq" - "eqCL9BJBf7h3QbOCCxV5EVWMEMwG7K1/WODtlvx" - "AYTtEsDU9F34AAAAAElFTkSuQmCC"; - /* nodeinfo 2.0 template */ const char *nodeinfo_2_0_template = "" @@ -99,7 +91,7 @@ int server_get_handler(d_char *req, char *q_path, else if (strcmp(q_path, "/susie.png") == 0 || strcmp(q_path, "/favicon.ico") == 0 ) { status = 200; - *body = xs_base64_dec(susie, b_size); + *body = xs_base64_dec(default_avatar_base64(), b_size); *ctype = "image/png"; } else -- cgit v1.2.3