summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Jacke <bjoern@j3e.de>2011-03-09 12:08:15 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2011-03-09 12:08:15 +0100
commit467baa2663f6403e28cea1db1c18563237b213b5 (patch)
tree9840c4836aa0b46ad18a8d347f68835a385184da
parent79f0867e8d871b419f5258d4fd7fc2817b372386 (diff)
downloadbugzilla-467baa2663f6403e28cea1db1c18563237b213b5.tar.gz
bugzilla-467baa2663f6403e28cea1db1c18563237b213b5.tar.xz
Bug 639367: Set the HTTP status to 503 when Bugzilla is down for maintenance
r/a=mkanat
-rw-r--r--Bugzilla.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index c911de733..c62b825e0 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -170,7 +170,7 @@ sub init_page {
else {
$extension = 'txt';
}
- print Bugzilla->cgi->header() if i_am_cgi();
+ print Bugzilla->cgi->header(-status=>503) if i_am_cgi();
my $t_output;
$template->process("global/message.$extension.tmpl", $vars, \$t_output)
|| ThrowTemplateError($template->error);