aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Jacke <bjoern@j3e.de>2011-03-09 12:13:21 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2011-03-09 12:13:21 +0100
commit317fc6d919da6370863efb76f03cd25d20a9a454 (patch)
tree635e1b2101a95e502171c616eb2bb344335e8301 /Bugzilla.pm
parentBug 639367: Set the HTTP status to 503 when Bugzilla is down for maintenance (diff)
downloadbugzilla-317fc6d919da6370863efb76f03cd25d20a9a454.tar.gz
bugzilla-317fc6d919da6370863efb76f03cd25d20a9a454.tar.bz2
bugzilla-317fc6d919da6370863efb76f03cd25d20a9a454.zip
Fix on checkin for bug 639367: Add a comment to explain why we set the HTTP status to 503
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index c62b825e0..2c07ea722 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)