diff --git a/pages/api/social/comments.tsx b/pages/api/social/comments.tsx
index 43b7db1..568be48 100644
--- a/pages/api/social/comments.tsx
+++ b/pages/api/social/comments.tsx
@@ -14,13 +14,13 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
const comments = await getRemoteCommentsOnLocalContent(req.query.resource as string);
let renderedTree =
- `` +
+ `` +
renderToString();
// XXX(mime): in the feeds I have some attributes that are `ref`. However, ref isn't allowed in React,
// so in the DOM they are `refXXX`. Return them to normal here, sigh.
renderedTree = renderedTree.replace(/refXXX="([^"]+)"/g, 'ref="$1"');
- res.setHeader('Content-Type', 'xml');
+ res.setHeader('Content-Type', 'application/xml');
res.send(renderedTree);
}
diff --git a/pages/api/social/feed.tsx b/pages/api/social/feed.tsx
index 36c50f4..60bd9bf 100644
--- a/pages/api/social/feed.tsx
+++ b/pages/api/social/feed.tsx
@@ -23,7 +23,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
// so in the DOM they are `refXXX`. Return them to normal here, sigh.
renderedTree = renderedTree.replace(/refXXX="([^"]+)"/g, 'ref="$1"');
- res.setHeader('Content-Type', 'xml');
+ res.setHeader('Content-Type', 'application/xml');
res.send(renderedTree);
}
diff --git a/pages/api/social/foaf.tsx b/pages/api/social/foaf.tsx
index dc0d00a..c260ed5 100644
--- a/pages/api/social/foaf.tsx
+++ b/pages/api/social/foaf.tsx
@@ -17,7 +17,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
res.setHeader('Content-Type', 'application/xrd+xml');
res.send(
- `` +
+ `` +
renderToString()
);
}