Skip to content

Commit

Permalink
Respond .well-known/host-meta.json with application/json (#11777)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
xtexChooser authored Sep 3, 2023
1 parent 724ed47 commit a53727f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/server/WellKnownServerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit a53727f

Please sign in to comment.