Skip to content

Commit

Permalink
change robots.txt response content type to 'text/plain'
Browse files Browse the repository at this point in the history
  • Loading branch information
Milan Osztromok committed Nov 16, 2017
1 parent 36dfdca commit 5c02402
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/Magento/Robots/Controller/Index/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public function execute()
/** @var Page $resultPage */
$resultPage = $this->resultPageFactory->create(true);
$resultPage->addHandle('robots_index_index');
$resultPage->setHeader('Content-Type', 'text/plain');
return $resultPage;
}
}

0 comments on commit 5c02402

Please sign in to comment.