Skip to content

Commit a4f9a6a

Browse files
committed
Apache-2.4.x doesn't issue a "DefaultType" any more, so don't expect it.
New versions of Apache don't issue a default Content-Type if none was provided in the response, so we cannot check for this any longer.
1 parent c653e44 commit a4f9a6a

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

t/conf/extra.conf.in

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

4342
<Location /decline_uc>

t/content-type.t

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use lib 't';
77
use MY::slurp;
88

99
# Test "Content-Type" headers
10-
plan tests => 3, need_lwp;
10+
plan tests => 2, need_lwp;
1111

1212
# "Content-Type" with additional attributes (e.g. "charset")
1313
charset_minified: {
@@ -19,13 +19,11 @@ charset_minified: {
1919
}
2020

2121
# Missing "Content-Type" header; should decline processing and we get the
22-
# un-minified version. Apache, however, -will- set a default "Content-Type"
23-
# into the response.
22+
# un-minified version.
2423
content_type_missing: {
2524
my $res = GET '/content-type/missing';
2625
my $body = $res->content;
2726
my $orig = slurp( 't/htdocs/test.js' );
2827

29-
ok( $res->content_type eq 'text/missing' );
3028
ok( t_cmp($body, $orig) );
3129
}

0 commit comments

Comments
 (0)