This commit is contained in:
Leandro Facchinetti 2021-04-17 10:40:15 +01:00
parent e3950b61fd
commit 4f03a9daaa
1 changed files with 1 additions and 4 deletions

View File

@ -419,10 +419,7 @@ export default function killTheNewsletter(
(req, res, next) => {
const feed = renderFeed(req.params.feedReference);
if (feed === undefined) return next();
res
.contentType("application/atom+xml")
.header("X-Robots-Tag", "noindex")
.send(feed);
res.type("atom").header("X-Robots-Tag", "noindex").send(feed);
}
);