diff options
| author | 2024-01-30 08:09:43 +0100 | |
|---|---|---|
| committer | 2024-01-30 08:09:43 +0100 | |
| commit | 644138b2b9b3fa7cae8d34d5580c63ff06e66bd7 (patch) | |
| tree | 42b6916de057d787cf56936866157c753582f0f4 | |
| parent | Version 2.46 RELEASED. (diff) | |
| download | snac2-644138b2b9b3fa7cae8d34d5580c63ff06e66bd7.tar.gz snac2-644138b2b9b3fa7cae8d34d5580c63ff06e66bd7.tar.xz snac2-644138b2b9b3fa7cae8d34d5580c63ff06e66bd7.zip | |
Minor tweak to host-meta.
| -rw-r--r-- | httpd.c | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -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) { |