HTTPServer: set content type for .html files

This commit is contained in:
Dietmar Maurer 2014-06-13 11:25:52 +02:00
parent 87b89a3a44
commit 657b2c277a

View File

@ -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$/) {