@matheusbsbs / matheus-bagliano / commits / f0321866be
Fork 0

gitweb: fix snapshot support

[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 <junkio@cox.net>

Aneesh Kumar K.V committed Aug 17, 2006 at 22:56 UTC f0321866be971bf7dda2464d143e5a156182eba8
1 file changed +1 -1
gitweb/gitweb.perl
+1 -1
@@ -2202,7 +2202,7 @@ sub git_snapshot {
2202 my $filename = basename($project) . "-$hash.tar.gz";
2203
2204 print $cgi->header(-type => 'application/x-tar',
2205 - -content-encoding => 'gzip',
2205 + -content-encoding => 'x-gzip',
2206 '-content-disposition' => "inline; filename=\"$filename\"",
2207 -status => '200 OK');
2208