[Catalyst-dev] Patch for Catalyst-Plugin-Static-0.07

Matthias Waldorf catalyst.misc at zoom.de
Fri Jul 15 12:13:45 CEST 2005


I had problems installing File::MimeInfo::Magic on win32 so I would suggest using LWP::MediaTypes instead:

 

       use LWP::MediaTypes qw(guess_media_type);

       ...

       my $type = shift || guess_media_type $path;

 

 

One can still use File::MimeInfo::Magic within the application and supply mimetype as an argument to Static.

 

Would that be ok?

Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst-dev/attachments/20050715/01634e5b/attachment.htm


More information about the Catalyst-dev mailing list