mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-16 21:28:16 +00:00
avoid gzip http response for jar
Java archives (.jar) are simple zip files - already compressed.
This commit is contained in:
parent
0ebf2fa8d9
commit
a49706cb78
@ -277,6 +277,7 @@ sub send_file_start {
|
|||||||
$nocomp = 1;
|
$nocomp = 1;
|
||||||
} elsif ($filename =~ m/\.jar$/) {
|
} elsif ($filename =~ m/\.jar$/) {
|
||||||
$ct = 'application/java-archive';
|
$ct = 'application/java-archive';
|
||||||
|
$nocomp = 1;
|
||||||
} else {
|
} else {
|
||||||
die "unable to detect content type";
|
die "unable to detect content type";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user