summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)