Skip to content

Commit 5c02402

Browse files
author
Milan Osztromok
committed
change robots.txt response content type to 'text/plain'
1 parent 36dfdca commit 5c02402

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/Robots/Controller/Index

1 file changed

+1
-0
lines changed

app/code/Magento/Robots/Controller/Index/Index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function execute()
4343
/** @var Page $resultPage */
4444
$resultPage = $this->resultPageFactory->create(true);
4545
$resultPage->addHandle('robots_index_index');
46+
$resultPage->setHeader('Content-Type', 'text/plain');
4647
return $resultPage;
4748
}
4849
}

0 commit comments

Comments
 (0)