1
0
Fork 0
forked from alemi/upub

fix: well known without protocol

This commit is contained in:
əlemi 2024-03-26 03:54:25 +01:00
parent d918caa815
commit 82f8abd96b
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -139,8 +139,8 @@ pub async fn host_meta(State(ctx): State<Context>) -> Response {
[("Content-Type", "application/xrd+xml")], [("Content-Type", "application/xrd+xml")],
format!(r#"<?xml version="1.0" encoding="UTF-8"?> format!(r#"<?xml version="1.0" encoding="UTF-8"?>
<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0"> <XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
<Link type="application/xrd+xml" template="{}/.well-known/webfinger?resource={{uri}}" rel="lrdd" /> <Link type="application/xrd+xml" template="{}{}/.well-known/webfinger?resource={{uri}}" rel="lrdd" />
</XRD>"#, </XRD>"#,
ctx.base()) ctx.protocol(), ctx.base())
).into_response() ).into_response()
} }