mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-05 12:30:55 +00:00
HTTPServer: add support for font files (content types)
This commit is contained in:
parent
7c16f7fa62
commit
a9acb2bad0
@ -361,6 +361,12 @@ sub send_file_start {
|
||||
} elsif ($filename =~ m/\.jar$/) {
|
||||
$ct = 'application/java-archive';
|
||||
$nocomp = 1;
|
||||
} elsif ($filename =~ m/\.woff$/) {
|
||||
$ct = 'application/font-woff';
|
||||
$nocomp = 1;
|
||||
} elsif ($filename =~ m/\.ttf$/) {
|
||||
$ct = 'application/x-font-ttf';
|
||||
$nocomp = 1;
|
||||
} else {
|
||||
die "unable to detect content type";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user