From: Alexander Hartmaier Date: Mon, 9 Sep 2013 14:18:31 +0000 (+0200) Subject: fix MIME::Types 2.xx compatibility be removing call to an undocumented method X-Git-Tag: v0.31~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Static-Simple.git;a=commitdiff_plain;h=c338a2151d2645aaf4732167b321c5f8e52a613b fix MIME::Types 2.xx compatibility be removing call to an undocumented method --- diff --git a/Changes b/Changes index 5c40233..22e053f 100644 --- a/Changes +++ b/Changes @@ -3,6 +3,8 @@ Revision history for Perl extension Catalyst::Plugin::Static::Simple - Updated docs to reflect config key change from 'static' to 'Plugin::Static::Simple' (RT#77709) - Migrated repository from subversion to git + - Fixed MIME::Types 2.xx compatibility be removing call to an + undocumented method 0.30 2012-05-04 17:05:00 - Add Cache-Control:public header diff --git a/lib/Catalyst/Plugin/Static/Simple.pm b/lib/Catalyst/Plugin/Static/Simple.pm index 34bf111..a0a00e7 100644 --- a/lib/Catalyst/Plugin/Static/Simple.pm +++ b/lib/Catalyst/Plugin/Static/Simple.pm @@ -112,9 +112,6 @@ before setup_finalize => sub { # load up a MIME::Types object, only loading types with # at least 1 file extension $config->{mime_types_obj} = MIME::Types->new( only_complete => 1 ); - - # preload the type index hash so it's not built on the first request - $config->{mime_types_obj}->create_type_index; }; # Search through all included directories for the static file