From: Bjoern Jacke Date: Wed, 9 Mar 2011 11:08:15 +0000 (+0100) Subject: Bug 639367: Set the HTTP status to 503 when Bugzilla is down for maintenance X-Git-Tag: bugzilla-4.1.1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=467baa2663f6403e28cea1db1c18563237b213b5;p=thirdparty%2Fbugzilla.git Bug 639367: Set the HTTP status to 503 when Bugzilla is down for maintenance r/a=mkanat --- diff --git a/Bugzilla.pm b/Bugzilla.pm index c911de7335..c62b825e06 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);