Skip to content

Commit f1b9dcf

Browse files
authored
Merge pull request #3258 from metacpan/haarg/small-cleanups
small cleanups
2 parents 6cd2c89 + 6c15ace commit f1b9dcf

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
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
} );

t/html.t

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ use File::Find ();
88
use Path::Tiny qw( path );
99

1010
# files that have inline <script> tags
11-
my %skip = map { $_ => 1 } (
12-
'root/about/contributors.tx', 'root/account/profile.tx', 'root/base.tx',
13-
);
11+
my %skip = map { $_ => 1 } ();
1412

1513
File::Find::find(
1614
{

0 commit comments

Comments
 (0)