HTTPServer: add support for font files (content types)

This commit is contained in:
Dietmar Maurer 2014-08-01 06:22:53 +02:00
parent 7c16f7fa62
commit a9acb2bad0

View File

@ -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";
}