From 657b2c277af2d2010e45bdeb2f515f1de0a063d8 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 13 Jun 2014 11:25:52 +0200 Subject: [PATCH] HTTPServer: set content type for .html files --- PVE/HTTPServer.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE/HTTPServer.pm b/PVE/HTTPServer.pm index 2de3579d..8a372420 100755 --- a/PVE/HTTPServer.pm +++ b/PVE/HTTPServer.pm @@ -343,6 +343,8 @@ sub send_file_start { my $nocomp; if ($filename =~ m/\.css$/) { $ct = 'text/css'; + } elsif ($filename =~ m/\.html$/) { + $ct = 'text/html'; } elsif ($filename =~ m/\.js$/) { $ct = 'application/javascript'; } elsif ($filename =~ m/\.png$/) {