X-Git-Url: https://git.decadent.org.uk/gitweb/?p=maypole.git;a=blobdiff_plain;f=lib%2FMaypole.pm;h=1a86f53ad515c57afb82fa1d1b381f0abcb10b54;hp=fd39cfa5bff4f467001f662a7cf2bdd645216edd;hb=ed2bc6057ed94ae64e5b03ff28477fcbac52f4ee;hpb=a4b491683c59a0a505501187742b145eb538eb93 diff --git a/lib/Maypole.pm b/lib/Maypole.pm index fd39cfa..1a86f53 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -616,7 +616,7 @@ my %filetypes = ( sub __get_mime_type { my $self = shift; my $type = 'text/html'; - if ($self->path =~ m/.*\.(\w{3,4})$/) { + if ($self->path =~ m/.*\.(\w{2,4})$/) { $type = $filetypes{$1}; } else { my $output = $self->output;