Skip to content

Commit 489e8f3

Browse files
committed
Use an explicit "default MIME-Type" so we know that we're getting the default one that Apache sets.
1 parent aa01099 commit 489e8f3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

t/conf/extra.conf.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Alias /raw @DocumentRoot@
3737
SetHandler modperl
3838
PerlResponseHandler MY::NoCTypeHandler
3939
PerlOutputFilterHandler Apache2::Filter::Minifier::JavaScript
40+
DefaultType text/missing
4041
</Location>
4142

4243
<Location /decline_uc>

t/content-type.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ content_type_missing: {
2626
my $body = $res->content;
2727
my $orig = slurp( 't/htdocs/test.js' );
2828

29-
ok( $res->content_type !~ m{text/javascript} );
29+
ok( $res->content_type eq 'text/missing' );
3030
ok( t_cmp($body, $orig) );
3131
}

0 commit comments

Comments
 (0)