From 0bf9772cb0b2da9affb8e512b771ee0eb6b0f81e Mon Sep 17 00:00:00 2001 From: Nicolas Le Gall Date: Mon, 16 Oct 2023 10:33:18 +0900 Subject: [PATCH] Apply adamcooke/staytus#339 --- app/controllers/pages_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index 923e1225..0eebc452 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -31,7 +31,7 @@ def robots unless site.crawling_permitted? text << "Disallow: /" end - render :text => text.join("\n"), :content_type => 'text/plain' + render :plain => text.join("\n"), :content_type => 'text/plain' end def subscriber_verification