mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-12 09:50:14 +00:00
HTTPServer: set content type for .html files
This commit is contained in:
parent
87b89a3a44
commit
657b2c277a
@ -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$/) {
|
||||||
|
Loading…
Reference in New Issue
Block a user