From 45c9a7583c68ad5d150f40162dab65800124caf2 Mon Sep 17 00:00:00 2001 From: Jakub Narebski Date: Wed, 27 Dec 2006 23:59:51 +0100 Subject: [PATCH] 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 --- gitweb/gitweb.perl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.30.2