From a9acb2bad09c1ff55e1931d78d4667becd7a3923 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 1 Aug 2014 06:22:53 +0200 Subject: [PATCH] HTTPServer: add support for font files (content types) --- PVE/HTTPServer.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PVE/HTTPServer.pm b/PVE/HTTPServer.pm index 6ea2795f..3f402724 100755 --- a/PVE/HTTPServer.pm +++ b/PVE/HTTPServer.pm @@ -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"; }