diff --git a/lib/MetaCPAN/Web/Controller/Root.pm b/lib/MetaCPAN/Web/Controller/Root.pm index 401857ba76e..cb4c1f26535 100644 --- a/lib/MetaCPAN/Web/Controller/Root.pm +++ b/lib/MetaCPAN/Web/Controller/Root.pm @@ -88,6 +88,7 @@ sub robots : Path("robots.txt") : Args(0) { $c->browser_max_age('1d'); $c->cdn_max_age('1y'); + $c->res->content_type('text/plain'); $c->stash( { template => 'robots.txt', } ); diff --git a/t/html.t b/t/html.t index 5d837ed3a84..8e286c09c9b 100644 --- a/t/html.t +++ b/t/html.t @@ -8,9 +8,7 @@ use File::Find (); use Path::Tiny qw( path ); # files that have inline