Commit 7bf2d98f authored by Dietmar Maurer's avatar Dietmar Maurer

avoid gzip http response for jar

Java archives (.jar) are simple zip files - already compressed.
parent e4f2a5c5
...@@ -277,6 +277,7 @@ sub send_file_start { ...@@ -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";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment