change /guestbook.rss mime type
This commit is contained in:
parent
169a8a2405
commit
f306696bc1
|
@ -173,7 +173,7 @@ async function rss(req, res) {
|
||||||
let ident = 4;
|
let ident = 4;
|
||||||
if (req.query.ident) ident = req.query.ident;
|
if (req.query.ident) ident = req.query.ident;
|
||||||
|
|
||||||
res.header('Content-Type', 'text/plain');
|
res.header('Content-Type', 'application/rss+xml');
|
||||||
res.send(xml(rss, {indent: ' '.repeat(ident)}));
|
res.send(xml(rss, {indent: ' '.repeat(ident)}));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue