Respond .well-known/host-meta.json with application/json (#11777)
According to RFC 6415 appendix-A. The server MUST include the HTTP "Content-Type" response header field with a value of "application/json". Any other "Content-Type" value (or lack thereof) indicates that the server does not support the JRD format. "application/jrd+json" is only used by WebFinger (RFC 7033)
This commit is contained in:
parent
724ed47e5f
commit
a53727f1a5
@ -73,7 +73,7 @@ export class WellKnownServerService {
|
||||
});
|
||||
|
||||
fastify.get('/.well-known/host-meta.json', async (request, reply) => {
|
||||
reply.header('Content-Type', jrd);
|
||||
reply.header('Content-Type', 'application/json');
|
||||
return {
|
||||
links: [{
|
||||
rel: 'lrdd',
|
||||
|
Loading…
Reference in New Issue
Block a user