Merge pull request #6 from vmstan/fix-wrong-quotes

Fix incorrect single quote type in host-info XML
main
bashrc 2024-07-06 16:18:38 +01:00 committed by GitHub
commit a978f0bfd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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
"""
meta_str = \
"<?xml version=1.0' encoding=UTF-8'?>" + \
"<XRD xmlns=http://docs.oasis-open.org/ns/xri/xrd-1.0'" + \
" xmlns:hm=http://host-meta.net/xrd/1.0'>" + \
"<?xml version='1.0' encoding='UTF-8'?>" + \
"<XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'" + \
" xmlns:hm='http://host-meta.net/xrd/1.0'>" + \
"" + \
"<hm:Host>" + domain_full + "</hm:Host>" + \
"" + \
"<Link rel=lrdd" + \
" template=" + http_prefix + "://" + domain_full + \
"<Link rel='lrdd'" + \
" template='" + http_prefix + "://" + domain_full + \
"/describe?uri={uri}'>" + \
" <Title>Resource Descriptor</Title>" + \
" </Link>" + \