summaryrefslogtreecommitdiff
path: root/gitweb/gitweb.perl
diff options
context:
space:
mode:
authorLibravatar Aneesh Kumar K.V <aneesh.kumar@gmail.com>2006-08-17 22:56:23 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-08-17 22:58:05 -0700
commitf0321866be971bf7dda2464d143e5a156182eba8 (patch)
tree5c646d55f22fa6e3347bcf89bb66bf8797dc9e6e /gitweb/gitweb.perl
parentgitweb: bugfix: git_print_page_path() needs the hash base (diff)
downloadtgif-f0321866be971bf7dda2464d143e5a156182eba8.tar.xz
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>
Diffstat (limited to 'gitweb/gitweb.perl')
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index f7c0418c6b..f8d1036744 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');