[pve-devel] [PATCH 4/7] PVE/HTTPServer: add known type text/html

Stefan Priebe s.priebe at profihost.ag
Mon Jun 2 09:43:34 CEST 2014


Signed-off-by: Stefan Priebe <s.priebe at profihost.ag>
---
 PVE/HTTPServer.pm |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/PVE/HTTPServer.pm b/PVE/HTTPServer.pm
index 2de3579..789d824 100755
--- a/PVE/HTTPServer.pm
+++ b/PVE/HTTPServer.pm
@@ -357,6 +357,9 @@ sub send_file_start {
 	    } elsif ($filename =~ m/\.jar$/) {
 		$ct = 'application/java-archive';
 		$nocomp = 1;
+	    } elsif ($filename =~ m/\.html$/) {
+		$ct = 'text/html';
+		$nocomp = 1;
 	    } else {
 		die "unable to detect content type";
 	    }
-- 
1.7.10.4




More information about the pve-devel mailing list