aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-10-22 09:21:04 +0300
committerGravatar Vitaly Takmazov2024-10-22 09:21:04 +0300
commit6e3c7498fc315113e5a4e5a632be00363c0f9ccf (patch)
tree5fa1d9f6906ed69d35ef7dcae6076166435c0b6c
parenteddf69eca8dccab69f6ef08823f06cc5a6106e21 (diff)
vnext: fix `host-meta` xml response
-rw-r--r--vnext/server/middleware/host-meta.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/vnext/server/middleware/host-meta.js b/vnext/server/middleware/host-meta.js
index fe6ca631..0bca925a 100644
--- a/vnext/server/middleware/host-meta.js
+++ b/vnext/server/middleware/host-meta.js
@@ -8,10 +8,7 @@ const baseURL = config.get('service.baseURL')
*/
export const xmlMeta = async (_req, res) => {
return res.set('Content-Type', 'text/xml')
- .send(`<?xml version="1.0" encoding="UTF-8"?>
- <XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
- <Link rel="lrdd" template="${baseURL}/.well-known/webfinger?resource={uri}"/>
- </XRD>`)
+ .send(`<?xml version="1.0" encoding="UTF-8"?><XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0"><Link rel="lrdd" template="${baseURL}/.well-known/webfinger?resource={uri}"/></XRD>`)
}
/**