From 467baa2663f6403e28cea1db1c18563237b213b5 Mon Sep 17 00:00:00 2001 From: Bjoern Jacke Date: Wed, 9 Mar 2011 12:08:15 +0100 Subject: Bug 639367: Set the HTTP status to 503 when Bugzilla is down for maintenance r/a=mkanat --- Bugzilla.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla.pm') 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); -- cgit v1.2.1