diff options
author | Aneesh Kumar K.V <aneesh.kumar@gmail.com> | 2006-08-17 22:56:23 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-17 22:58:05 -0700 |
commit | f0321866be971bf7dda2464d143e5a156182eba8 (patch) | |
tree | 5c646d55f22fa6e3347bcf89bb66bf8797dc9e6e /gitweb/gitweb.perl | |
parent | gitweb: bugfix: git_print_page_path() needs the hash base (diff) | |
download | tgif-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-x | gitweb/gitweb.perl | 2 |
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'); |