From: Jakub Narebski Date: Wed, 27 Dec 2006 22:59:51 +0000 (+0100) Subject: gitweb: Add mod_perl version string to "generator" meta header X-Git-Tag: v1.5.0-rc1~180 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=45c9a7583c68ad5d150f40162dab65800124caf2;p=git.git gitweb: Add mod_perl version string to "generator" meta header Add mod_perl version string (the value of $ENV{'MOD_PERL'} if it is set) to "generator" meta header. The purpose of this is to identify version of gitweb, now that codepath may differ for gitweb run as CGI script, run under mod_perl 1.0 and run under mod_perl 2.0. Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index da12be747..a0a614aca 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -1711,6 +1711,7 @@ sub git_header_html { } print $cgi->header(-type=>$content_type, -charset => 'utf-8', -status=> $status, -expires => $expires); + my $mod_perl_version = $ENV{'MOD_PERL'} ? " $ENV{'MOD_PERL'}" : ''; print < @@ -1719,7 +1720,7 @@ sub git_header_html { - + $title EOF