Skip to content

Commit a143d8f

Browse files
committed
robots.txt is a text file
1 parent 6cd2c89 commit a143d8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/MetaCPAN/Web/Controller/Root.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ sub robots : Path("robots.txt") : Args(0) {
8888
$c->browser_max_age('1d');
8989
$c->cdn_max_age('1y');
9090

91+
$c->res->content_type('text/plain');
9192
$c->stash( {
9293
template => 'robots.txt',
9394
} );

0 commit comments

Comments
 (0)