]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: fix snapshot support
authorAneesh Kumar K.V <redacted>
Fri, 18 Aug 2006 05:56:23 +0000 (22:56 -0700)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
[jc: when I applied the patch I misread RFC 2616 which mildly
 recommended against using the name "gzip", which was there only
 for a historical reason.  This fixes the mistake up and uses
 the content-encoding "x-gzip" again.]

Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index fdbadd7204362e027fae3808927535de096cf63d9c5877694b2010df43bf250b..4990e123f5fb477cdec5049e82d58b1d826c51cbaafc2ac0da1fba843238c0ec 100755 (executable)
@@ -2202,7 +2202,7 @@ sub git_snapshot {
        my $filename = basename($project) . "-$hash.tar.gz";
 
        print $cgi->header(-type => 'application/x-tar',
-                       -content-encoding => 'gzip',
+                       -content-encoding => 'x-gzip',
                        '-content-disposition' => "inline; filename=\"$filename\"",
                        -status => '200 OK');
 
This page took 0.30207 seconds and 4 git commands to generate.