This commit is contained in:
barisusakli
2015-10-26 22:39:19 -04:00
parent 5e1bd58a02
commit 488f147bef
2 changed files with 5 additions and 2 deletions

View File

@@ -168,7 +168,10 @@ Controllers.sitemap = function(req, res, next) {
var sitemap = require('../sitemap.js');
sitemap.render(function(xml) {
sitemap.render(function(err, xml) {
if (err) {
return next(err);
}
res.header('Content-Type', 'application/xml');
res.send(xml);
});