mirror of https://gitlab.com/bashrc2/epicyon
Merge branch 'main' of https://github.com/bashrc2/epicyon
commit
eafcf07efa
10
webfinger.py
10
webfinger.py
|
@ -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>" + \
|
||||||
|
|
Loading…
Reference in New Issue