File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
lib/MetaCPAN/Server/Controller Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ use warnings;
55
66use Moose;
77use Plack::App::Directory;
8- use Plack::MIME;
98
109BEGIN { extends ' MetaCPAN::Server::Controller' }
1110
@@ -33,7 +32,7 @@ sub get : Chained('index') : PathPart('') : Args {
3332 }
3433 else {
3534 $c -> stash-> {path } = $file ;
36- $c -> res-> content_type(Plack::MIME -> mime_type( $file ) || ' text/plain' );
35+ $c -> res-> content_type(' text/plain' );
3736 $c -> res-> body( $file -> openr );
3837 }
3938}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ test_psgi app, sub {
2222 if ( $k eq ' /source/Moose' ) {
2323 like( $res -> content, qr / package Moose/ , ' Moose source' );
2424 is( $res -> header(' content-type' ),
25- ' text/x-script.perl-module ; charset=UTF-8' ,
25+ ' text/plain ; charset=UTF-8' ,
2626 ' Content-type'
2727 );
2828 }
You can’t perform that action at this time.
0 commit comments