Code

gitweb: Fix typo in hash key name in %opts in git_header_html
authorJakub Narebski <jnareb@gmail.com>
Sat, 12 Jun 2010 22:35:59 +0000 (00:35 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 13 Jun 2010 17:03:04 +0000 (10:03 -0700)
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 <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl

index 934aacb61494a666ed0bdf9a9f1ef77dc6147c23..e108bbc60ac9f02de5dc796377a251ede2bae6a4 100755 (executable)
@@ -3220,7 +3220,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"?>