]> git.proxmox.com Git - pve-manager.git/commitdiff
avoid gzip http response for jar
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 11 Jun 2013 05:00:05 +0000 (07:00 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 11 Jun 2013 05:00:05 +0000 (07:00 +0200)
Java archives (.jar) are simple zip files - already compressed.

PVE/HTTPServer.pm

index 6911b1015319215c68597cb346da9b5a7e13e627..0ba99f76c273d63ef1b30a6ba16fe32c84dcbbde 100755 (executable)
@@ -277,6 +277,7 @@ sub send_file_start {
                $nocomp = 1;
            } elsif ($filename =~ m/\.jar$/) {
                $ct = 'application/java-archive';
+               $nocomp = 1;
            } else {
                die "unable to detect content type";
            }