Skip to content

Commit

Permalink
robots.txt is a text file
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Dec 28, 2024
1 parent 6cd2c89 commit a143d8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/MetaCPAN/Web/Controller/Root.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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',
} );
Expand Down

0 comments on commit a143d8f

Please sign in to comment.