mirror of
https://framagit.org/fiat-tux/hat-softwares/lutim.git
synced 2026-07-04 17:01:54 +02:00
Fix #13
The mime type detection module was adding "x-" to some mime types.
This commit is contained in:
@@ -42,6 +42,9 @@ sub startup {
|
||||
);
|
||||
return 500;
|
||||
}
|
||||
|
||||
$mediatype =~ s/x-//;
|
||||
|
||||
$asset = Mojo::Asset::File->new(path => $path);
|
||||
my $headers = Mojo::Headers->new();
|
||||
$headers->add('Content-Type' => $mediatype.';name='.$filename);
|
||||
|
||||
Reference in New Issue
Block a user