From: Aneesh Kumar K.V Date: Fri, 18 Aug 2006 05:56:23 +0000 (-0700) Subject: gitweb: fix snapshot support X-Git-Tag: v1.4.3-rc1~168^2~38 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=f0321866be971bf7dda2464d143e5a156182eba8;p=git.git 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 --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index f7c0418c6..f8d103674 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -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');