summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-01-27 18:17:11 +0100
committerdefault <nobody@localhost>2023-01-27 18:17:11 +0100
commita3ed2408fcaca25ad4966741e173677aab0a8848 (patch)
treea1e7c1365fbf7da67b32f5faea60d83b190310e5 /httpd.c
parent0607ebc2010d23f5f51da5e0300564a4e0cdba33 (diff)
New function default_avatar_base64().
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/httpd.c b/httpd.c
index 87ff669..c5f9ff8 100644
--- a/httpd.c
+++ b/httpd.c
@@ -14,14 +14,6 @@
#include <setjmp.h>
#include <pthread.h>
-/* 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