1
0
mirror of https://github.com/git/git.git synced 2024-09-26 01:01:06 +02:00

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>
This commit is contained in:
Aneesh Kumar K.V 2006-08-17 22:56:23 -07:00 committed by Junio C Hamano
parent 59fb1c9445
commit f0321866be

View File

@ -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');