Bob Mottram 2024-07-06 16:20:21 +01:00
commit eafcf07efa
1 changed files with 5 additions and 5 deletions

View File

@ -248,14 +248,14 @@ def webfinger_meta(http_prefix: str, domain_full: str) -> str:
"""Return /.well-known/host-meta """Return /.well-known/host-meta
""" """
meta_str = \ meta_str = \
"<?xml version=1.0' encoding=UTF-8'?>" + \ "<?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'" + \
" xmlns:hm=http://host-meta.net/xrd/1.0'>" + \ " xmlns:hm='http://host-meta.net/xrd/1.0'>" + \
"" + \ "" + \
"<hm:Host>" + domain_full + "</hm:Host>" + \ "<hm:Host>" + domain_full + "</hm:Host>" + \
"" + \ "" + \
"<Link rel=lrdd" + \ "<Link rel='lrdd'" + \
" template=" + http_prefix + "://" + domain_full + \ " template='" + http_prefix + "://" + domain_full + \
"/describe?uri={uri}'>" + \ "/describe?uri={uri}'>" + \
" <Title>Resource Descriptor</Title>" + \ " <Title>Resource Descriptor</Title>" + \
" </Link>" + \ " </Link>" + \