From: Dagfinn Ilmari Mannsåker Date: Thu, 15 Mar 2018 10:40:26 +0000 (+0000) Subject: Relax PNG content type check in t/05dirs.t X-Git-Tag: v0.36~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Static-Simple.git;a=commitdiff_plain;h=246916e6aff004518616a1f755e9ef93fb027a07;hp=0f93c510af9afdd95a15bfb812d86732b2f78fe9 Relax PNG content type check in t/05dirs.t Some systems return image/vnd.mozilla.apng rather than image/png --- diff --git a/Changes b/Changes index 3f3c34b..ccc8795 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,7 @@ Revision history for Perl extension Catalyst::Plugin::Static::Simple + - Relax PNG content type check in t/05dirs.t + 0.35 2018-03-14 12:07 GMT - Use less-likely extension for unknown file type (RT#124211) diff --git a/t/05dirs.t b/t/05dirs.t index f342556..5f01eda 100644 --- a/t/05dirs.t +++ b/t/05dirs.t @@ -31,7 +31,7 @@ is( $res->content_type, 'text/html', '404 is text/html' ); # qr regex test ok( $res = request('http://localhost/images/catalyst.png'), 'request ok' ); -is( $res->content_type, 'image/png', 'qr regex path ok' ); +like( $res->content_type, qr{\Aimage/.*png\z}, 'qr regex path ok' ); # eval regex test ok( $res = request('http://localhost/css/static.css'), 'request ok' );