Commit 5afee956 authored by Dietmar Maurer's avatar Dietmar Maurer

HTTPServer: add support for font files (content types)

parent fa27a891
......@@ -361,6 +361,12 @@ sub send_file_start {
} elsif ($filename =~ m/\.jar$/) {
$ct = 'application/java-archive';
$nocomp = 1;
} elsif ($filename =~ m/\.woff$/) {
$ct = 'application/font-woff';
$nocomp = 1;
} elsif ($filename =~ m/\.ttf$/) {
$ct = 'application/x-font-ttf';
$nocomp = 1;
} else {
die "unable to detect content type";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment