From: Bjoern Jacke Date: Wed, 9 Mar 2011 11:13:21 +0000 (+0100) Subject: Fix on checkin for bug 639367: Add a comment to explain why we set the HTTP status... X-Git-Tag: bugzilla-4.1.1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=317fc6d919da6370863efb76f03cd25d20a9a454;p=thirdparty%2Fbugzilla.git Fix on checkin for bug 639367: Add a comment to explain why we set the HTTP status to 503 --- diff --git a/Bugzilla.pm b/Bugzilla.pm index c62b825e06..2c07ea7227 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -170,6 +170,8 @@ sub init_page { else { $extension = 'txt'; } + # Set the HTTP status to 503 when Bugzilla is down to avoid pages + # from being indexed. print Bugzilla->cgi->header(-status=>503) if i_am_cgi(); my $t_output; $template->process("global/message.$extension.tmpl", $vars, \$t_output)