sitemap fix

This commit is contained in:
Baris Soner Usakli
2014-01-17 18:58:38 -05:00
parent c00bd0b8d0
commit dc27638ca8
3 changed files with 4 additions and 2 deletions

View File

@@ -767,7 +767,8 @@ if(nconf.get('ssl')) {
var sitemap = require('./sitemap.js');
sitemap.render(function (xml) {
res.type('xml').set('Content-Length', xml.length).send(xml);
res.header('Content-Type', 'application/xml');
res.send( xml );
});
});