mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
sitemap fix
This commit is contained in:
@@ -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 );
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user