This commit is contained in:
Baris Usakli
2017-07-10 14:55:57 -04:00
parent 4e7447c9d6
commit e036e26238
3 changed files with 38 additions and 3 deletions

View File

@@ -291,8 +291,8 @@ Controllers.confirmEmail = function (req, res) {
Controllers.robots = function (req, res) {
res.set('Content-Type', 'text/plain');
if (meta.config['robots.txt']) {
res.send(meta.config['robots.txt']);
if (meta.config['robots:txt']) {
res.send(meta.config['robots:txt']);
} else {
res.send('User-agent: *\n' +
'Disallow: ' + nconf.get('relative_path') + '/admin/\n' +