]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Don't use Content-Encoding: header in git_snapshot
[Gitweb] / gitweb.perl
index 65fe0bb4ae8e179969fa6972107a2c05d78b25edc3f8e15c1f6af911c841c24d..eb04ebb1e38b4a828ebd7d64bfba0b1ba19a0e40397a5331ba5ac2b978500c2f 100755 (executable)
@@ -121,7 +121,7 @@ our %feature = (
        # To disable system wide have in $GITWEB_CONFIG
        # $feature{'snapshot'}{'default'} = [undef];
        # To have project specific config enable override in $GITWEB_CONFIG
-       # $feature{'blame'}{'override'} = 1;
+       # $feature{'snapshot'}{'override'} = 1;
        # and in project config gitweb.snapshot = none|gzip|bzip2;
        'snapshot' => {
                'sub' => \&feature_snapshot,
@@ -3415,8 +3415,7 @@ sub git_snapshot {
        my $filename = basename($project) . "-$hash.tar.$suffix";
 
        print $cgi->header(
-               -type => 'application/x-tar',
-               -content_encoding => $ctype,
+               -type => "application/$ctype",
                -content_disposition => 'inline; filename="' . "$filename" . '"',
                -status => '200 OK');
 
This page took 0.229855 seconds and 4 git commands to generate.