From 5c024025593a701df675842fe7136dbe23df59fb Mon Sep 17 00:00:00 2001 From: Milan Osztromok <tufa@polisys.hu> Date: Thu, 16 Nov 2017 16:18:53 +0100 Subject: [PATCH] change robots.txt response content type to 'text/plain' --- app/code/Magento/Robots/Controller/Index/Index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/code/Magento/Robots/Controller/Index/Index.php b/app/code/Magento/Robots/Controller/Index/Index.php index b94626e9343..679066d723d 100644 --- a/app/code/Magento/Robots/Controller/Index/Index.php +++ b/app/code/Magento/Robots/Controller/Index/Index.php @@ -43,6 +43,7 @@ class Index extends Action /** @var Page $resultPage */ $resultPage = $this->resultPageFactory->create(true); $resultPage->addHandle('robots_index_index'); + $resultPage->setHeader('Content-Type', 'text/plain'); return $resultPage; } } -- GitLab