From 317fc6d919da6370863efb76f03cd25d20a9a454 Mon Sep 17 00:00:00 2001 From: Bjoern Jacke Date: Wed, 9 Mar 2011 12:13:21 +0100 Subject: Fix on checkin for bug 639367: Add a comment to explain why we set the HTTP status to 503 --- Bugzilla.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Bugzilla.pm') 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) -- cgit v1.2.3-24-g4f1b