fix: fix host-meta RFC6415 Content-Type

This commit is contained in:
lesion 2024-01-10 09:04:48 +01:00
parent cccb670cc7
commit 550ee5c317
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -137,7 +137,7 @@ router.use('/host-meta', (req, res) => {
const settings = settingsController.settings const settings = settingsController.settings
log.debug('host-meta') log.debug('host-meta')
res.type('application/xml') res.type('application/xrd+xml')
res.send(`<?xml version="1.0" encoding="UTF-8"?> res.send(`<?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 rel="lrdd" type="application/xrd+xml" template="${settings.baseurl}/.well-known/webfinger?resource={uri}"/> <Link rel="lrdd" type="application/xrd+xml" template="${settings.baseurl}/.well-known/webfinger?resource={uri}"/>