summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2024-01-30 08:09:43 +0100
committerGravatar default2024-01-30 08:09:43 +0100
commit644138b2b9b3fa7cae8d34d5580c63ff06e66bd7 (patch)
tree42b6916de057d787cf56936866157c753582f0f4
parentVersion 2.46 RELEASED. (diff)
downloadsnac2-644138b2b9b3fa7cae8d34d5580c63ff06e66bd7.tar.gz
snac2-644138b2b9b3fa7cae8d34d5580c63ff06e66bd7.tar.xz
snac2-644138b2b9b3fa7cae8d34d5580c63ff06e66bd7.zip
Minor tweak to host-meta.
-rw-r--r--httpd.c7
1 files changed, 4 insertions, 3 deletions
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,
226 if (strcmp(q_path, "/.well-known/host-meta") == 0) { 226 if (strcmp(q_path, "/.well-known/host-meta") == 0) {
227 status = 200; 227 status = 200;
228 *ctype = "application/xrd+xml"; 228 *ctype = "application/xrd+xml";
229 *body = xs_str_new("<XRD>" 229 *body = xs_fmt("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
230 "<Link rel=\"lrdd\" type=\"application/xrd+xml\" template=\"%s/.well-known/webfinger?resource={uri}\"/>" 230 "<XRD>"
231 "</XRD>"); 231 "<Link rel=\"lrdd\" type=\"application/xrd+xml\" template=\"https://%s/.well-known/webfinger?resource={uri}\"/>"
232 "</XRD>", xs_dict_get(srv_config, "host"));
232 } 233 }
233 else 234 else
234 if (strcmp(q_path, "/nodeinfo_2_0") == 0) { 235 if (strcmp(q_path, "/nodeinfo_2_0") == 0) {