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
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