Everywhere: Make session->content_type() callable
This commit is contained in:
parent
614e68194b
commit
ff5a07dc04
10 changed files with 43 additions and 26 deletions
|
@ -4,6 +4,6 @@ U0 @slon_host_meta(SlonHttpSession* session)
|
|||
no_warn request_json;
|
||||
|
||||
StrPrint(scratch_buffer, "<?xml version=\"1.0\" encoding=\"UTF-8\"?><XRD xmlns=\"http://docs.oasis-open.org/ns/xri/xrd-1.0\"><Link rel=\"lrdd\" template=\"https://%s/.well-known/webfinger?resource={uri}\"/></XRD>", db->o("instance")->@("uri"));
|
||||
@slon_http_set_content_type(session, "application/xrd+xml; charset=utf-8");
|
||||
session->content_type("application/xrd+xml; charset=utf-8");
|
||||
session->send(scratch_buffer);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue