]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix on checkin for bug 639367: Add a comment to explain why we set the HTTP status...
authorBjoern Jacke <bjoern@j3e.de>
Wed, 9 Mar 2011 11:13:21 +0000 (12:13 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 9 Mar 2011 11:13:21 +0000 (12:13 +0100)
Bugzilla.pm

index c62b825e0643f69afbb94f22c378d92cfa9e995a..2c07ea72274c1f605926ecafaefb6b91a92731c0 100644 (file)
@@ -170,6 +170,8 @@ sub init_page {
         else {
             $extension = 'txt';
         }
+        # Set the HTTP status to 503 when Bugzilla is down to avoid pages
+        # from being indexed.
         print Bugzilla->cgi->header(-status=>503) if i_am_cgi();
         my $t_output;
         $template->process("global/message.$extension.tmpl", $vars, \$t_output)