aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
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 /Bugzilla.pm
parent79f0867e8d871b419f5258d4fd7fc2817b372386 (diff)
downloadbugs-467baa2663f6403e28cea1db1c18563237b213b5.tar
bugs-467baa2663f6403e28cea1db1c18563237b213b5.tar.gz
bugs-467baa2663f6403e28cea1db1c18563237b213b5.tar.bz2
bugs-467baa2663f6403e28cea1db1c18563237b213b5.tar.xz
bugs-467baa2663f6403e28cea1db1c18563237b213b5.zip
Bug 639367: Set the HTTP status to 503 when Bugzilla is down for maintenance
r/a=mkanat
Diffstat (limited to 'Bugzilla.pm')
-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);