]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole.pm
fix to redirect request
[maypole.git] / lib / Maypole.pm
index fd39cfa5bff4f467001f662a7cf2bdd645216edd..1a86f53ad515c57afb82fa1d1b381f0abcb10b54 100644 (file)
@@ -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;