Skip to content

Commit

Permalink
gitweb: fix snapshot support
Browse files Browse the repository at this point in the history
[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>
  • Loading branch information
Aneesh Kumar K.V authored and Junio C Hamano committed Aug 18, 2006
1 parent 59fb1c9 commit f032186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit f032186

Please sign in to comment.