Commit 467baa26 authored by Bjoern Jacke's avatar Bjoern Jacke Committed by Frédéric Buclin

Bug 639367: Set the HTTP status to 503 when Bugzilla is down for maintenance

r/a=mkanat
parent 79f0867e
...@@ -170,7 +170,7 @@ sub init_page { ...@@ -170,7 +170,7 @@ sub init_page {
else { else {
$extension = 'txt'; $extension = 'txt';
} }
print Bugzilla->cgi->header() if i_am_cgi(); print Bugzilla->cgi->header(-status=>503) if i_am_cgi();
my $t_output; my $t_output;
$template->process("global/message.$extension.tmpl", $vars, \$t_output) $template->process("global/message.$extension.tmpl", $vars, \$t_output)
|| ThrowTemplateError($template->error); || ThrowTemplateError($template->error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment