mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-12 21:10:22 +03:00
Minor tweak to host-meta.
This commit is contained in:
parent
b3e289b40b
commit
644138b2b9
7
httpd.c
7
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) {
|
if (strcmp(q_path, "/.well-known/host-meta") == 0) {
|
||||||
status = 200;
|
status = 200;
|
||||||
*ctype = "application/xrd+xml";
|
*ctype = "application/xrd+xml";
|
||||||
*body = xs_str_new("<XRD>"
|
*body = xs_fmt("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
|
||||||
"<Link rel=\"lrdd\" type=\"application/xrd+xml\" template=\"%s/.well-known/webfinger?resource={uri}\"/>"
|
"<XRD>"
|
||||||
"</XRD>");
|
"<Link rel=\"lrdd\" type=\"application/xrd+xml\" template=\"https://%s/.well-known/webfinger?resource={uri}\"/>"
|
||||||
|
"</XRD>", xs_dict_get(srv_config, "host"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
if (strcmp(q_path, "/nodeinfo_2_0") == 0) {
|
if (strcmp(q_path, "/nodeinfo_2_0") == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user