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

Matthias Waldorf catalyst.misc at zoom.de
Fri Jul 15 22:23:10 CEST 2005


Dear Andy,

you are right, LWP::MediaTypes needs help for some files. I used to call it 
like this (this solves the problem with Firefox):

    use LWP::MediaTypes qw(add_type guess_media_type);
    BEGIN {
        add_type 'text/css' => qw(css);
    }

This could either be done inside Static.pm or within the calling 
application. I'm sure there are better solutions, but LWP::MediaTypes should 
be available everywhere and you can still use another module and pass the 
mimetype to Static.pm.

With kind regards,
Matthias




More information about the Catalyst-dev mailing list