]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Fix typo in hash key name in %opts in git_header_html
authorJakub Narebski <redacted>
Sat, 12 Jun 2010 22:35:59 +0000 (00:35 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:40 +0000 (00:50 -0400)
The name of the key has to be the same in call site handle_errors_html
and in called subroutine that uses it, i.e. git_header_html.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 19b5a442dc60be1e56072ed14546d9dadddb94ad7e4204be3e60ea2f33310440..0ca1f7cd8a52505d9776bc52cea5918c9c23a73a4c48909726b36c6093f5a9cc 100755 (executable)
@@ -3395,7 +3395,7 @@ sub git_header_html {
        }
        print $cgi->header(-type=>$content_type, -charset => 'utf-8',
                           -status=> $status, -expires => $expires)
-               unless ($opts{'-no_http_headers'});
+               unless ($opts{'-no_http_header'});
        my $mod_perl_version = $ENV{'MOD_PERL'} ? " $ENV{'MOD_PERL'}" : '';
        print <<EOF;
 <?xml version="1.0" encoding="utf-8"?>
This page took 0.344244 seconds and 4 git commands to generate.