summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorGravatar default2023-01-27 18:17:11 +0100
committerGravatar default2023-01-27 18:17:11 +0100
commita3ed2408fcaca25ad4966741e173677aab0a8848 (patch)
treea1e7c1365fbf7da67b32f5faea60d83b190310e5 /httpd.c
parentNew file susie-cool.png. (diff)
downloadsnac2-a3ed2408fcaca25ad4966741e173677aab0a8848.tar.gz
snac2-a3ed2408fcaca25ad4966741e173677aab0a8848.tar.xz
snac2-a3ed2408fcaca25ad4966741e173677aab0a8848.zip
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 @@
14#include <setjmp.h> 14#include <setjmp.h>
15#include <pthread.h> 15#include <pthread.h>
16 16
17/* susie.png */
18const char *susie =
19 "iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAQAAAAC"
20 "CEkxzAAAAUUlEQVQoz43R0QkAMQwCUDdw/y3dwE"
21 "vsvzlL4X1IoQkAisKmwfAFT3RgJHbQezpSRoXEq"
22 "eqCL9BJBf7h3QbOCCxV5EVWMEMwG7K1/WODtlvx"
23 "AYTtEsDU9F34AAAAAElFTkSuQmCC";
24
25 17
26/* nodeinfo 2.0 template */ 18/* nodeinfo 2.0 template */
27const char *nodeinfo_2_0_template = "" 19const char *nodeinfo_2_0_template = ""
@@ -99,7 +91,7 @@ int server_get_handler(d_char *req, char *q_path,
99 else 91 else
100 if (strcmp(q_path, "/susie.png") == 0 || strcmp(q_path, "/favicon.ico") == 0 ) { 92 if (strcmp(q_path, "/susie.png") == 0 || strcmp(q_path, "/favicon.ico") == 0 ) {
101 status = 200; 93 status = 200;
102 *body = xs_base64_dec(susie, b_size); 94 *body = xs_base64_dec(default_avatar_base64(), b_size);
103 *ctype = "image/png"; 95 *ctype = "image/png";
104 } 96 }
105 else 97 else