Commit a53e2d0a authored by Dietmar Maurer's avatar Dietmar Maurer

HTTPServer: set content type for .html files

parent 87ec5397
...@@ -343,6 +343,8 @@ sub send_file_start { ...@@ -343,6 +343,8 @@ sub send_file_start {
my $nocomp; my $nocomp;
if ($filename =~ m/\.css$/) { if ($filename =~ m/\.css$/) {
$ct = 'text/css'; $ct = 'text/css';
} elsif ($filename =~ m/\.html$/) {
$ct = 'text/html';
} elsif ($filename =~ m/\.js$/) { } elsif ($filename =~ m/\.js$/) {
$ct = 'application/javascript'; $ct = 'application/javascript';
} elsif ($filename =~ m/\.png$/) { } elsif ($filename =~ m/\.png$/) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment