From 644138b2b9b3fa7cae8d34d5580c63ff06e66bd7 Mon Sep 17 00:00:00 2001
From: default
Date: Tue, 30 Jan 2024 08:09:43 +0100
Subject: Minor tweak to host-meta.
---
httpd.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
(limited to 'httpd.c')
diff --git a/httpd.c b/httpd.c
index a20d692..fde40cb 100644
--- a/httpd.c
+++ b/httpd.c
@@ -226,9 +226,10 @@ int server_get_handler(xs_dict *req, const char *q_path,
if (strcmp(q_path, "/.well-known/host-meta") == 0) {
status = 200;
*ctype = "application/xrd+xml";
- *body = xs_str_new(""
- ""
- "");
+ *body = xs_fmt("\n"
+ ""
+ ""
+ "", xs_dict_get(srv_config, "host"));
}
else
if (strcmp(q_path, "/nodeinfo_2_0") == 0) {
--
cgit v1.2.3