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

Stefan Priebe s.priebe at profihost.ag
Sun Jun 1 22:49:21 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 e5f7279..b61f08d 100755
--- a/PVE/HTTPServer.pm
+++ b/PVE/HTTPServer.pm
@@ -306,6 +306,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