aboutsummaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@gmail.com>2006-08-17 22:56:23 -0700
committerJunio C Hamano <junkio@cox.net>2006-08-17 22:58:05 -0700
commitf0321866be971bf7dda2464d143e5a156182eba8 (patch)
tree5c646d55f22fa6e3347bcf89bb66bf8797dc9e6e /gitweb
parent59fb1c944551083bbd4bccd1b5783488745f6bc4 (diff)
downloadgit-f0321866be971bf7dda2464d143e5a156182eba8.tar.gz
git-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')
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 1 insertions, 1 deletions
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');