mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 14:36:27 +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$/) {
|
} elsif ($filename =~ m/\.jar$/) {
|
||||||
$ct = 'application/java-archive';
|
$ct = 'application/java-archive';
|
||||||
$nocomp = 1;
|
$nocomp = 1;
|
||||||
|
} elsif ($filename =~ m/\.woff$/) {
|
||||||
|
$ct = 'application/font-woff';
|
||||||
|
$nocomp = 1;
|
||||||
|
} elsif ($filename =~ m/\.ttf$/) {
|
||||||
|
$ct = 'application/x-font-ttf';
|
||||||
|
$nocomp = 1;
|
||||||
} else {
|
} else {
|
||||||
die "unable to detect content type";
|
die "unable to detect content type";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user