Skip to content

Commit

Permalink
Catalyst has changed behaviour around sending charset with headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Mar 9, 2016
1 parent 1c72d10 commit 7c88baa
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions t/server/controller/source.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ test_psgi app, sub {
is( $res->code, $v, "code $v" );
if ( $k eq '/source/Moose' ) {
like( $res->content, qr/package Moose/, 'Moose source' );
is(
$res->header('content-type'),
'text/plain; charset=UTF-8',
'Content-type'
);
is( $res->header('content-type'), 'text/plain', 'Content-type' );

# Used for fastly on st.aticpan.org
is( $res->header('X-Content-Type'),
Expand Down Expand Up @@ -68,19 +64,12 @@ test_psgi app, sub {
}
else {
is( $res->content, $manifest, 'Plain text manifest' );
is(
$res->header('content-type'),
'text/plain; charset=UTF-8',
'Content-type'
);
is( $res->header('content-type'),
'text/plain', 'Content-type' );
}
}
elsif ( $k eq '/source/DOY/Moose-0.01/Changes' ) {
is(
$res->header('content-type'),
'text/plain; charset=UTF-8',
'Content-type'
);
is( $res->header('content-type'), 'text/plain', 'Content-type' );
like(
$res->decoded_content,
qr/codename 'M\x{fc}nchen'/,
Expand Down

0 comments on commit 7c88baa

Please sign in to comment.